/* ===== Status Bar ===== */
.status-bar {
    grid-column: 2 / -1;
    background: #007acc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 12px;
    color: white;
}

.status-left, .status-right { display: flex; gap: 12px; }

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 2px;
    transition: background 0.15s;
}

.status-item:hover { background: rgba(255,255,255,0.1); }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-default);
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    border-radius: 6px;
    transition: background 0.15s;
}

.modal-close:hover { background: var(--bg-hover); }

.modal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-default);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    margin: 4px 0 12px;
    outline: none;
}

.modal-input:focus { border-color: var(--accent-primary); }

.modal-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 300px;
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.success { border-left: 3px solid var(--accent-success); }
.toast.error { border-left: 3px solid var(--accent-error); }
.toast.info { border-left: 3px solid var(--accent-primary); }
.toast.warning { border-left: 3px solid var(--accent-warning); }

@keyframes toastSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-icon { font-size: 18px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-message { font-size: 12px; color: var(--text-secondary); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.toast-close:hover { background: var(--bg-hover); }

/* ===== Context Menu ===== */
.context-menu {
    position: fixed;
    z-index: 1002;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: contextFadeIn 0.15s ease;
    display: none;
}

@keyframes contextFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.context-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.context-item:hover { background: var(--bg-hover); }

/* ===== Empty State ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 40px;
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.breadcrumb-item { cursor: pointer; transition: color 0.15s; }
.breadcrumb-item:hover { color: var(--text-white); }
.breadcrumb-separator { color: var(--text-muted); }

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Help Section ===== */
.help-section {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin: 16px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-default);
}

.help-section:first-child { margin-top: 0; }

.help-item {
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.help-item strong { color: var(--accent-primary); }

.shortcut-list {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Info Row ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 13px;
}

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

.info-row span:first-child { color: var(--text-secondary); }
.info-row span:last-child { color: var(--text-white); }

/* ===== Modal Slider ===== */
.modal-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.modal-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* ===== History Item ===== */
.history-item {
    padding: 12px;
    margin: 8px 0;
    background: var(--bg-tertiary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.history-item:hover { background: var(--bg-hover); }

.history-header {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-content {
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}