/**
 * SOC Task Manager - SOC in a Box Theme
 * Styled to match socinabox.co.uk branding
 * Dark navy backgrounds · Teal/cyan accents · Professional cybersecurity aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* SOC in a Box brand palette */
    --navy-900: #0a0e1a;
    --navy-800: #0f1629;
    --navy-700: #151d35;
    --navy-600: #1b2541;
    --navy-500: #243052;
    --navy-400: #2d3b63;

    --teal-500: #00c9a7;
    --teal-400: #00e4be;
    --teal-300: #33edd0;
    --teal-600: #00a88c;

    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;

    --blue-500: #3b82f6;
    --blue-400: #60a5fa;

    --primary: #00c9a7;
    --primary-hover: #00e4be;
    --primary-glow: rgba(0, 201, 167, 0.15);

    --success: #00c9a7;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg: #0a0e1a;
    --bg-card: #0f1629;
    --bg-card-hover: #151d35;
    --bg-elevated: #1b2541;
    --bg-input: #151d35;

    --text: #e2e8f0;
    --text-bright: #f8fafc;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 201, 167, 0.3);

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 201, 167, 0.1);

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
    background: var(--navy-800);
    color: white;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.navbar-brand svg {
    color: var(--teal-500);
    filter: drop-shadow(0 0 6px rgba(0, 201, 167, 0.4));
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analyst-badge {
    background: rgba(0, 201, 167, 0.15);
    color: var(--teal-400);
    border: 1px solid rgba(0, 201, 167, 0.3);
}

.manager-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ── Container ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    color: var(--navy-900);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 201, 167, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
    box-shadow: 0 4px 16px rgba(0, 201, 167, 0.4);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--teal-500);
    color: var(--teal-400);
}

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.825rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
    transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* ── Alert ── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Login Page ── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--navy-900);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 201, 167, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.login-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    color: var(--teal-500);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 12px rgba(0, 201, 167, 0.3));
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-bright);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.login-form .btn {
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.login-footer code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--teal-400);
    border: 1px solid var(--border);
}

/* ── Shift Info Bar ── */
.shift-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shift-details h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-bright);
    font-weight: 700;
}

.shift-details p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.shift-status {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(0, 201, 167, 0.15);
    color: var(--teal-400);
    border: 1px solid rgba(0, 201, 167, 0.3);
}

.status-scheduled {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan-400);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.status-completed {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.shift-progress {
    text-align: center;
}

.progress-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: conic-gradient(
        var(--teal-500) calc(var(--progress, 0) * 1%),
        var(--navy-600) calc(var(--progress, 0) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    box-shadow: 0 0 16px rgba(0, 201, 167, 0.15);
}

.progress-ring::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--bg-card);
}

.progress-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--teal-400);
}

.progress-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Client Chips ── */
.client-chips {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.chip-primary {
    background: rgba(0, 201, 167, 0.12);
    color: var(--teal-400);
    border: 1px solid rgba(0, 201, 167, 0.25);
}

.chip-secondary {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ── Task List ── */
.task-list {
    padding: 0;
}

.task-item {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.task-item.task-completed {
    background: rgba(0, 201, 167, 0.04);
}

.task-item.task-completed .task-title {
    text-decoration: line-through;
    color: var(--text-dim);
}

.task-header {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.task-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 2px;
}

.task-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--teal-500);
    background: var(--bg-input);
}

.task-info {
    flex: 1;
}

.task-title {
    font-size: 0.925rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-bright);
}

.task-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.task-help-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--teal-500, #00c9a7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.task-help-link:hover {
    color: #33d4b7;
    text-decoration: underline;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.priority-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.priority-high {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.priority-medium {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.priority-low {
    background: rgba(0, 201, 167, 0.1);
    color: var(--teal-400);
    border: 1px solid rgba(0, 201, 167, 0.2);
}

.category-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.completed-time {
    font-size: 0.75rem;
    color: var(--teal-400);
}

/* ── Task Notes ── */
.task-notes {
    padding: 0 1.5rem 1rem 4rem;
}

.task-notes textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    resize: vertical;
}

.task-notes textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── Save Indicator ── */
.save-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.save-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 6px rgba(0, 201, 167, 0.4);
}

.save-indicator.saving .save-dot {
    background: var(--warning);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
    animation: pulse 1s infinite;
}

.save-indicator.error .save-dot {
    background: var(--danger);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── WYSIWYG Editor (Quill overrides) ── */
#editor {
    min-height: 300px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-card);
}

#editor .ql-editor {
    color: var(--text);
}

#editor .ql-editor.ql-blank::before {
    color: var(--text-dim);
    font-style: italic;
}

.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--text-muted);
}

.ql-toolbar.ql-snow .ql-fill {
    fill: var(--text-muted);
}

.ql-toolbar.ql-snow .ql-picker-label {
    color: var(--text-muted);
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke {
    stroke: var(--teal-400);
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-fill {
    fill: var(--teal-400);
}

.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: var(--teal-500);
}

.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: var(--teal-500);
}

.ql-container.ql-snow {
    border: none;
}

.ql-snow .ql-picker-options {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
}

.ql-snow .ql-picker-item {
    color: var(--text);
}

/* ── Report Actions ── */
.report-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Badge ── */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(0, 201, 167, 0.15);
    color: var(--teal-400);
    border: 1px solid rgba(0, 201, 167, 0.3);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 0.85rem 1rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    color: var(--teal-400);
    border-bottom-color: var(--teal-500);
    background: rgba(0, 201, 167, 0.05);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Tables ── */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-sm th,
.table-sm td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* ── Shift badges ── */
.shift-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.shift-morning {
    background: rgba(250, 204, 21, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.shift-afternoon {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.shift-night {
    background: rgba(129, 140, 248, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 500;
}

.action-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    background: rgba(0, 201, 167, 0.1);
    color: var(--teal-400);
    font-family: 'SF Mono', 'Fira Code', monospace;
    border: 1px solid rgba(0, 201, 167, 0.15);
}

/* ── Analyst Grid ── */
.analyst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analyst-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.analyst-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.analyst-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.analyst-header h4 {
    color: var(--text-bright);
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--teal-500);
    box-shadow: 0 0 8px rgba(0, 201, 167, 0.5);
    animation: glow-pulse 2s infinite;
}

.status-indicator.offline { background: #475569; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 201, 167, 0.5); }
    50% { box-shadow: 0 0 16px rgba(0, 201, 167, 0.8); }
}

.analyst-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stat {
    text-align: center;
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-bright);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Client Grid ── */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.client-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.client-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.client-card-header h4 {
    font-size: 0.95rem;
    color: var(--text-bright);
    font-weight: 600;
}

.industry-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.68rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.client-card-body {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
}

.client-card-body p { margin-bottom: 0.5rem; }
.client-card-body strong { color: var(--text-muted); }

.analyst-assignments {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.client-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.01);
}

/* ── Reports ── */
.reports-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.report-item {
    border-bottom: 1px solid var(--border);
}

.report-item:last-child { border-bottom: none; }

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.report-header:hover { background: rgba(255, 255, 255, 0.03); }

.report-header h4 {
    font-size: 0.925rem;
    color: var(--text-bright);
}

.expand-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.report-content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
}

.report-body {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--text);
}

/* ── Assignments in modal ── */
.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.assignment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.modal-large { max-width: 720px; }

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

.modal-header h3 {
    color: var(--text-bright);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--teal-400);
}

.modal-content form,
.modal-content .assignments-list,
.modal-content table,
.modal-content h4 {
    padding: 0 1.5rem;
}

.modal-content form {
    padding: 1.5rem;
}

.modal-content h4 {
    color: var(--text-bright);
    margin-top: 1rem;
}

.modal-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 1.5rem;
}

.modal-content select {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
}

/* ── Notifications ── */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
}

.notification-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.notification-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.text-success { color: var(--teal-400); }
.text-warning { color: #fbbf24; }
.text-danger { color: #f87171; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-800);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-400);
}

/* ── Selection ── */
::selection {
    background: rgba(0, 201, 167, 0.3);
    color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .navbar { padding: 0 1rem; }
    .shift-info { flex-direction: column; gap: 1rem; text-align: center; }
    .analyst-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .tabs { flex-wrap: wrap; }
    .tab { flex: none; }
    .task-header { flex-direction: column; }
    .navbar-user span:not(.user-badge) { display: none; }
}
