/* statusBar.css - Status Bar and Console Window Styles */

/* Status Bar */
.status-bar {
    position: relative;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-light) 50%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    z-index: 1000;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-family: var(--font-family);
    flex-shrink: 0;
}

.status-bar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-bar-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-bar-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-light);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb-link {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.breadcrumb-link:hover {
    background: var(--bg-white);
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 2px;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
    padding: 2px 4px;
    cursor: default;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.status-bar-button {
    background: var(--bg-white);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    height: 20px;
}

.status-bar-button:hover {
    background: var(--bg-white);
    color: var(--text-dark);
}

/* Console Window */
.console-window {
    position: fixed;
    width: 600px;
    height: 400px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 400px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 90vh;
}

.console-window.minimized {
    height: auto;
    resize: none;
}

.console-window.minimized .console-content {
    display: none;
}

.console-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    user-select: none;
    height: 28px;
}

.console-header-title {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.console-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.console-header-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 6px;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-header-button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.console-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
    background: #000000;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    line-height: 1.2;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #444444 #000000;
}

/* Custom scrollbar styling for console-content */
.console-content::-webkit-scrollbar {
    width: 12px;
}

.console-content::-webkit-scrollbar-track {
    background: #000000;
}

.console-content::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 6px;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.console-log {
    margin-bottom: var(--spacing-xs);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-weight: 500;
    font-size: var(--font-size-xs);
    font-family: var(--font-family-mono);
    line-height: 1.2;
}

.console-log-log {
    color: var(--text-dark);
    font-weight: 500;
}

.console-log-error {
    color: var(--secondary-color);
    font-weight: 600;
}

.console-log-warn {
    color: var(--warning-color);
    font-weight: 600;
}

.console-log-info {
    color: var(--accent-color);
    font-weight: 400;
}

/* Adjust body padding for status bar */
body.template-assignment {
    padding-bottom: 24px;
}

/* DataHub Window */
.datahub-window {
    position: fixed;
    width: 700px;
    height: 500px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 500px;
    min-height: 300px;
    max-width: 90vw;
    max-height: 90vh;
}

.datahub-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    user-select: none;
    height: 28px;
    flex-shrink: 0;
}

.datahub-header-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.datahub-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datahub-header-button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 6px;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datahub-header-button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Measure Editor Window */
.measure-editor-window {
    position: fixed;
    width: 380px;
    height: 460px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 320px;
    min-height: 320px;
    max-width: 90vw;
    max-height: 90vh;
}

.measure-editor-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 2px var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    user-select: none;
    height: 24px;
    flex-shrink: 0;
}

.measure-editor-title {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.measure-editor-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.measure-editor-body {
    flex: 1;
    overflow: auto;
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #444444 var(--bg-dark-surface);
}

.measure-editor-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.measure-editor-footer-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.measure-editor-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2px 8px;
    font-size: var(--font-size-xs);
    cursor: pointer;
    color: var(--text-dark);
}

.measure-editor-btn.measure-editor-primary {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.measure-editor-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.measure-editor-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.measure-editor-field label {
    font-size: var(--font-size-xs);
    color: var(--text-dark);
}

.measure-editor-input {
    padding: 2px var(--spacing-xs);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-dark);
}

.measure-editor-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--text-dark);
}

.measure-editor-error {
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    min-height: 14px;
}

.measure-editor-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.measure-editor-section-title {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.measure-editor-status {
    font-size: var(--font-size-xs);
    color: var(--secondary-color);
}

.measure-editor-body::-webkit-scrollbar {
    width: 12px;
}

.measure-editor-body::-webkit-scrollbar-track {
    background: var(--bg-dark-surface);
}

.measure-editor-body::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 6px;
}

.measure-editor-body::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.datahub-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-white);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #444444 #000000;
}

.datahub-content::-webkit-scrollbar {
    width: 12px;
}

.datahub-content::-webkit-scrollbar-track {
    background: #000000;
}

.datahub-content::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 6px;
}

.datahub-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* DataHub Sections */
.datahub-section {
    border-bottom: 1px solid var(--border-color);
}

.datahub-section:last-child {
    border-bottom: none;
}

.datahub-section-header {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.datahub-section-toggle {
    color: var(--text-light);
    margin-right: var(--spacing-xs);
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.datahub-section-toggle:hover {
    color: var(--text-dark);
}

.datahub-chevron-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.datahub-section-title {
    flex: 1;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-dark);
}

.datahub-section-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datahub-import-btn {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datahub-import-btn:hover {
    background: var(--accent-color);
}

.datahub-import-btn .datahub-chevron-icon {
    width: 10px;
    height: 10px;
    stroke: currentColor;
}

.datahub-section-content {
    display: block;
    background: var(--bg-white);
    max-height: 300px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #444444 #000000;
}

.datahub-section-content::-webkit-scrollbar {
    width: 12px;
}

.datahub-section-content::-webkit-scrollbar-track {
    background: #000000;
}

.datahub-section-content::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 6px;
}

.datahub-section-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.datahub-entry-list {
    padding: 0;
}

.datahub-entry-row {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    height: 32px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    gap: var(--spacing-xs);
}

.datahub-entry-row:hover {
    background: var(--bg-light);
}

.datahub-entry-row:last-child {
    border-bottom: none;
}

.datahub-entry-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.datahub-entry-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.datahub-entry-row:hover .datahub-entry-icon-wrapper {
    color: var(--accent-color);
}

.datahub-entry-name {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.datahub-entry-size {
    font-size: var(--font-size-xs);
    font-weight: 300;
    color: var(--text-muted);
    margin-right: var(--spacing-sm);
    min-width: 60px;
    text-align: right;
}

.datahub-entry-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.datahub-action-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 4px;
    width: 24px;
    height: 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.datahub-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.datahub-action-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.datahub-preview-btn:hover {
    color: var(--accent-color);
}

.datahub-delete-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.datahub-empty-state {
    padding: var(--spacing-lg);
    text-align: center;
}

.datahub-empty-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

.datahub-loading {
    padding: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.datahub-error {
    padding: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
}

/* Import Menu */
.datahub-import-menu {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    padding: var(--spacing-xs) 0;
    z-index: 3000;
}

.datahub-import-menu-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.datahub-import-menu-item:hover {
    background: var(--bg-light);
}

.datahub-menu-arrow {
    margin-left: var(--spacing-sm);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.datahub-menu-arrow .datahub-chevron-icon {
    width: 10px;
    height: 10px;
    stroke: currentColor;
}

/* Import Submenu */
.datahub-import-submenu {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: var(--spacing-xs) 0;
    z-index: 3001;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #444444 #000000;
}

.datahub-import-submenu::-webkit-scrollbar {
    width: 12px;
}

.datahub-import-submenu::-webkit-scrollbar-track {
    background: #000000;
}

.datahub-import-submenu::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 6px;
}

.datahub-import-submenu::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.datahub-sample-entry {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-xs);
}

.datahub-sample-entry:last-child {
    border-bottom: none;
}

.datahub-sample-entry:hover {
    background: var(--bg-light);
}

.datahub-sample-entry .datahub-entry-icon-wrapper {
    color: var(--text-muted);
}

.datahub-sample-entry:hover .datahub-entry-icon-wrapper {
    color: var(--accent-color);
}

.sample-entry-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sample-entry-size {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-left: var(--spacing-sm);
}

.datahub-empty-submenu {
    padding: var(--spacing-sm);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Removed - using flexbox layout instead */

