/* ─── View Transitions (Phase 6) ─────────────────────────────── */
@view-transition { navigation: auto; }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(root) { animation: 120ms ease-out both fade-out; }
::view-transition-new(root) { animation: 120ms ease-in  both fade-in;  }

:root {
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --secondary: #50e6ff;
    --success: #107c10;
    --warning: #ffaa44;
    --danger: #d13438;
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #201f1e;
    --text-secondary: #605e5c;
    --border: #edebe9;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --primary: #4cc2ff;
    --primary-dark: #0078d4;
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border: #333333;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Base size */
    transition: background 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Header - Mobile First */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* Actions Area */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn, 
.theme-toggle, 
.locale-toggle {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover,
.theme-toggle:hover, 
.locale-toggle:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* User Profile - Compact on Mobile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 20px;
    transition: background 0.2s;
    position: relative;
}

.user-profile:hover {
    background: var(--bg-main);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-name {
    display: block; /* Visible on mobile now */
    font-weight: 500;
    font-size: 0.85rem;
    max-width: 100px; /* Truncate if too long */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Layout */
.container {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
    text-align: left;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Quick Insights - Fully Responsive */
.quick-insights {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.insight-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-width: 0;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.insight-icon.primary { background: rgba(0, 120, 212, 0.1); color: var(--primary); }
.insight-icon.success { background: rgba(16, 124, 16, 0.1); color: var(--success); }
.insight-icon.warning { background: rgba(255, 170, 68, 0.1); color: var(--warning); }
.insight-icon.danger { background: rgba(209, 52, 56, 0.1); color: var(--danger); }

.insight-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.insight-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Tiles Grid - Fully Responsive */
.tiles-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1rem;
}

.tile {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tile::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.tile:hover::after {
    opacity: 1;
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.tile-icon.work { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.tile-icon.growth { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tile-icon.company { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.tile-icon.support { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.tile-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tile-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tile-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--primary);
    font-weight: 500;
    transition: background 0.2s;
}
.tile-link:hover {
    background: rgba(0, 120, 212, 0.1);
}

/* AI Chat - Responsive on all screens */
.ai-companion {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    right: max(1.5rem, env(safe-area-inset-right, 1.5rem));
    z-index: 2000;
}

.ai-orb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    animation: pulse 3s infinite;
}

.ai-orb:hover {
    transform: scale(1.05);
}

.ai-orb svg {
    width: 26px;
    height: 26px;
    fill: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 120, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); }
}

/* Chat Panel - Full Screen on Mobile */
.ai-panel {
    position: fixed;
    bottom: 0; right: 0; left: 0; top: 0; /* Full screen */
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    z-index: 2001;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}
.ai-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    z-index: 2001;
}

.ai-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-title { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.ai-title svg { fill: var(--primary); }
.ai-close { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; display: flex; }

.ai-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Chat Bubbles & Avatars */
.chat-message { display: flex; gap: 0.75rem; max-width: 90%; animation: fadeUp 0.3s ease-out; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; flex-shrink: 0; }
.chat-avatar.bot { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.chat-avatar.user { background: var(--text-secondary); color: white; display: none; } /* Compact on mobile */

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 100%;
}
.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
}

/* Markdown Styles inside Bubbles */
.chat-bubble p { margin-bottom: 0.5rem; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble code { background: rgba(0,0,0,0.1); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: monospace; }
.chat-bubble pre { background: rgba(0,0,0,0.1); padding: 0.8rem; border-radius: 8px; overflow-x: auto; margin: 0.5rem 0; }

/* Rich Text Formatting */
.chat-bubble strong, .chat-bubble b { font-weight: 600; }
.chat-bubble em, .chat-bubble i { font-style: italic; }
.chat-bubble a { color: #4fc3f7; text-decoration: underline; word-break: break-all; }
.chat-bubble a:hover { color: #81d4fa; }
.chat-message.user .chat-bubble a { color: #e3f2fd; }
.chat-bubble h1, .chat-bubble h2, .chat-bubble h3, .chat-bubble h4, .chat-bubble h5, .chat-bubble h6 {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.chat-bubble h1 { font-size: 1.5rem; }
.chat-bubble h2 { font-size: 1.3rem; }
.chat-bubble h3 { font-size: 1.1rem; }
.chat-bubble h4, .chat-bubble h5, .chat-bubble h6 { font-size: 1rem; }

/* Lists */
.chat-bubble ul, .chat-bubble ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
.chat-bubble li {
    margin-bottom: 0.3rem;
}
.chat-bubble ul { list-style: disc; }
.chat-bubble ol { list-style: decimal; }

/* Links */
.chat-bubble a {
    color: var(--primary);
    text-decoration: underline;
}
.chat-message.user .chat-bubble a {
    color: rgba(255, 255, 255, 0.9);
}

/* Blockquotes */
.chat-bubble blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Horizontal Rules */
.chat-bubble hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* Tables */
.chat-bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
}
.chat-bubble th, .chat-bubble td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: left;
}
.chat-bubble th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.ai-input-area {
    padding: 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.ai-input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    resize: none; /* If textarea */
    min-height: 44px; /* Touch target */
    max-height: 120px;
}
.ai-input:focus { border-color: var(--primary); outline: none; }

.ai-send, .ai-attach {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ai-send { background: var(--primary); color: white; }
.ai-send:hover { background: var(--primary-dark); }
.ai-attach { background: transparent; color: var(--text-secondary); }
.ai-attach:hover { background: var(--bg-main); color: var(--text-primary); }

/* Quick Action Buttons */
.quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Quick Actions Grid */
.quick-actions-grid {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Chat Timestamp */
.chat-timestamp {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    opacity: 0.6;
    text-align: right;
}
.chat-message.user .chat-timestamp { text-align: left; }

/* Domain badge on bot messages */
.chat-domain-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 500;
    background: rgba(0, 120, 212, 0.12);
    color: var(--primary);
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
/* Page Badge in header */
.ai-page-badge {
    font-size: 0.65rem;
    font-weight: 500;
    background: rgba(0, 120, 212, 0.15);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Actions group */
.ai-header-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.ai-header-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ai-header-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* Typing Indicator */
.typing-bubble {
    display: flex !important;
    gap: 5px;
    padding: 1rem !important;
    align-items: center;
}
.typing-bubble .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: bounce 1.2s infinite ease-in-out;
}
.typing-bubble .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.4s; }
.typing-bubble .typing-status {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
    animation: none;
}
.chat-message.streaming .chat-bubble-content {
    white-space: pre-wrap;
}
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Orb notification badge */
.orb-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--bg-card);
    font-size: 0;
}

/* Error / Retry */
.chat-error-msg {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.chat-error-msg span {
    font-size: 0.9rem;
}
.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.retry-btn:hover {
    background: var(--primary-dark);
}

/* Recruiter Pipeline Section */
.pipeline-section {
    margin-top: 2rem;
    padding: 0 1rem;
}
.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.pipeline-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}
.pipeline-header .refresh-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.pipeline-header .refresh-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pipeline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.pipeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pipeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.pipeline-card .count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.pipeline-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pipeline-card.initiated .count { color: var(--warning); }
.pipeline-card.cv-parsed .count { color: #0078d4; }
.pipeline-card.form-sent .count { color: #50e6ff; }
.pipeline-card.completed .count { color: var(--success); }
.pipeline-card.approved .count { color: #107c10; }

.pipeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.pipeline-table th,
.pipeline-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.pipeline-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pipeline-table tr:hover td {
    background: rgba(0, 120, 212, 0.04);
}
.pipeline-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ================================================
   RESPONSIVE BREAKPOINTS - Mobile First Approach
   ================================================ */

/* Extra Small Screens - Below 360px */
@media (max-width: 359px) {
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .user-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .icon-btn,
    .theme-toggle,
    .locale-toggle {
        padding: 0.4rem;
    }
    
    .container {
        padding: 1rem 0.75rem;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .insight-card {
        padding: 0.75rem;
    }
    
    .insight-icon {
        width: 36px;
        height: 36px;
    }
    
    .insight-label {
        font-size: 0.7rem;
    }
    
    .insight-value {
        font-size: 1rem;
    }
    
    .tile {
        padding: 1rem;
    }
.tiles-grid {
    gap: 0.75rem;
}

.tile-title {
    font-size: 1rem;
}

.tile-description {
    font-size: 0.8rem;
}

.summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.summary-value {
    font-size: 1.15rem;
}

.profile-card-grid {
    grid-template-columns: 1fr;
    gap: 4px;
}
}

/* Small Mobile (landscape phones) - 480px+ */
@media (min-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.25rem;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .user-name {
        max-width: 120px;
    }
}

/* Tablet Portrait - 768px+ */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .header {
        padding: 0 2rem;
        height: 64px;
        display: flex;
        align-items: center;
    }
    
    .header-content {
        width: 100%;
        padding: 0;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .user-name {
        display: block;
        max-width: 150px;
        font-size: 0.9rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 2rem;
    }
    
    .welcome-section {
        margin-bottom: 2.5rem;
    }
    
    /* Insights bar centered on tablet */
    .quick-insights {
        display: flex;
        justify-content: center;
        padding: 1.25rem 0;
    }
    
    .quick-insights {
        padding: 1rem 2rem;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .insight-card {
        padding: 1rem 1.25rem;
    }
    
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .chat-avatar.user {
        display: flex;
    }
    
    /* AI Chat positioning */
    .ai-companion {
        bottom: 1.5rem;
        right: 2rem;
    }
    
    .ai-orb {
        width: 56px;
        height: 56px;
    }
    
    .ai-orb svg {
        width: 28px;
        height: 28px;
    }
    
    /* Chat panel becomes floating card */
    .ai-panel {
        top: auto;
        left: auto;
        bottom: 100px;
        right: 2rem;
        width: 440px;
        height: min(640px, calc(100vh - 120px));
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    /* Modal improvements */
    .modal {
        width: 90%;
    }
    
    .profile-info {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .profile-avatar-large {
        margin: 0;
    }
    
    .profile-details {
        flex: 1;
    }
}

/* Tablet Landscape / Small Desktop - 1024px+ */
@media (min-width: 1024px) {
    .container {
        padding: 2.5rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .user-name {
        max-width: 180px;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .insight-card {
        padding: 1.25rem 1.5rem;
    }
    
    .insight-icon {
        width: 44px;
        height: 44px;
    }
    
    .insight-value {
        font-size: 1.15rem;
    }
    
    .tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .tile-icon {
        width: 52px;
        height: 52px;
    }
    
    .ai-panel {
        width: 480px;
        height: min(720px, calc(100vh - 120px));
    }
}

/* Tiny screens: hide username text to save space */
@media (max-width: 480px) {
    .user-name {
        display: none;
    }
}

/* Large Desktop - 1440px+ */
@media (min-width: 1440px) {
    .container {
        padding: 3rem;
    }
    
    .user-name {
        max-width: none; /* No truncation needed */
    }
    
    .quick-insights {
        padding: 1.5rem 3rem;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .insight-card {
        padding: 1.5rem;
    }
    
    .insight-icon {
        width: 48px;
        height: 48px;
    }
    
    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .tile {
        padding: 2rem;
    }
    
    .tile-icon {
        width: 56px;
        height: 56px;
    }
}

/* Ultra-wide - 1920px+ */
@media (min-width: 1920px) {
    .container,
    .insights-container {
        max-width: 1600px;
    }
    
    .insights-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Utility Animations & Banners */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.new-joiner-banner {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 0.875rem 1rem;
    text-align: center;
    animation: slideDown 0.4s ease-out;
    display: none;
    position: relative;
    font-size: 0.9rem;
}

.new-joiner-banner.active {
    display: block;
}

.banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
}

/* Dropdowns - Responsive */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.user-dropdown-item svg {
    flex-shrink: 0;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* Modal Styles - Fully Responsive */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 3000;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto;
    flex-shrink: 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    word-break: break-word;
}

.user-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* CV Extraction Data Table */
.cv-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cv-data-table caption {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
    background: rgba(0, 120, 212, 0.08);
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}
.cv-data-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    width: 35%;
    vertical-align: top;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--border);
}
.cv-data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}
.cv-data-table tr:last-child th,
.cv-data-table tr:last-child td {
    border-bottom: none;
}
.cv-data-table .section-header {
    background: rgba(0, 120, 212, 0.05);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    padding: 0.4rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cv-data-table .section-header td {
    padding: 0.4rem 0.75rem;
}
.cv-data-table .skill-tag {
    display: inline-block;
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin: 0.1rem 0.2rem;
    font-weight: 500;
}
.cv-data-table .exp-entry {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border);
}
.cv-data-table .exp-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.cv-data-table .exp-title {
    font-weight: 600;
    font-size: 0.85rem;
}
.cv-data-table .exp-company {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.cv-data-table .exp-dates {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ─── Approval Card (in-chat candidate review) ─── */
.approval-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
}
.approval-card-header {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.approval-card-section { margin-bottom: 0.75rem; }
.approval-card-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    opacity: 0.85;
}
.approval-card-table {
    width: 100%;
    border-collapse: collapse;
}
.approval-card-table th {
    text-align: left;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    width: 90px;
    opacity: 0.8;
    vertical-align: top;
}
.approval-card-table td {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}
.approval-card-optional {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}
.approval-card-optional li {
    padding: 0.15rem 0;
    opacity: 0.85;
}
.approval-card-optional li::before {
    content: "• ";
    opacity: 0.5;
}
.approval-card-meta {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-bottom: 0.6rem;
}
.approval-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.approval-btn {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.approval-btn:hover { opacity: 0.85; }
.approval-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.approval-btn.confirm {
    background: var(--success, #4caf50);
    color: #fff;
}
.approval-btn.edit {
    background: var(--primary, #1976d2);
    color: #fff;
}
.approval-btn.reject-review {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary, #aaa);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Scrollbar for chat */
.ai-chat::-webkit-scrollbar { width: 6px; }
.ai-chat::-webkit-scrollbar-track { background: transparent; }
.ai-chat::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* ========================================
   SUB-PAGE COMPONENTS — Day 4 Mock Data
   ======================================== */

/* Breadcrumb Navigation */
.breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}
.breadcrumb-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-link { color: var(--primary); text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-secondary); }
.breadcrumb-current { color: var(--text-secondary); }

/* Summary Cards Row */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
}
.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.summary-value.primary { color: var(--primary); }
.summary-value.success { color: #107c10; }
.summary-value.warning { color: #ffaa44; }
.summary-value.danger  { color: #d13438; }

/* Expanded Tiles */
.tile.tile-expanded {
    display: flex;
    flex-direction: column;
}
.tile-detail {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.tile-summary {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(0,120,212,0.04); }

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.badge-logged     { background: rgba(0,120,212,0.12); color: #0078d4; }
.badge-pending    { background: rgba(255,170,68,0.15); color: #d48300; }
.badge-approved   { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-reimbursed { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-on-track   { background: rgba(0,120,212,0.12); color: #0078d4; }
.badge-ahead      { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-at-risk    { background: rgba(209,52,56,0.12); color: #d13438; }
.badge-completed  { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-in-progress{ background: rgba(0,120,212,0.12); color: #0078d4; }
.badge-peer       { background: rgba(102,126,234,0.12); color: #667eea; }
.badge-manager    { background: rgba(118,75,162,0.12); color: #764ba2; }
.badge-product    { background: rgba(0,120,212,0.12); color: #0078d4; }
.badge-finance    { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-facilities { background: rgba(255,170,68,0.15); color: #d48300; }
.badge-partnership{ background: rgba(102,126,234,0.12); color: #667eea; }
.badge-company    { background: rgba(0,120,212,0.12); color: #0078d4; }
.badge-social     { background: rgba(255,170,68,0.15); color: #d48300; }
.badge-learning   { background: rgba(102,126,234,0.12); color: #667eea; }
.badge-high       { background: rgba(209,52,56,0.12); color: #d13438; }
.badge-medium     { background: rgba(255,170,68,0.15); color: #d48300; }
.badge-low        { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-open       { background: rgba(255,170,68,0.15); color: #d48300; }
.badge-resolved   { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-delivered  { background: rgba(16,124,16,0.12); color: #107c10; }
.badge-Development{ background: rgba(102,126,234,0.12); color: #667eea; }

/* Leave Balance Bars */
.leave-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.leave-row  { display: flex; align-items: center; gap: 0.75rem; }
.leave-label{ width: 110px; font-size: 0.85rem; font-weight: 500; flex-shrink: 0; }
.leave-track{
    flex: 1;
    height: 10px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.leave-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}
.leave-nums { width: 45px; text-align: right; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }

/* Team Schedule / People Directory */
.team-schedule { display: flex; flex-direction: column; gap: 0.5rem; }
.team-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.team-member:last-child { border-bottom: none; }
.team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.team-info { flex: 1; min-width: 0; }
.team-name { font-weight: 600; font-size: 0.9rem; }
.team-role { font-size: 0.8rem; color: var(--text-secondary); }
.team-status { font-size: 0.8rem; white-space: nowrap; }

/* Employee Profile Card */
.profile-card-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 0.9rem;
}
/* Goals */
.goal-row    { margin-bottom: 1rem; }
.goal-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.goal-meta   { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* Courses */
.courses-list { display: flex; flex-direction: column; gap: 1rem; }
.course-row   { }
.course-header{ display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; flex-wrap: wrap; }
.course-provider{ font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.35rem; }

/* Feedback Cards */
.feedback-card {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.feedback-card:last-child { border-bottom: none; }
.feedback-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.feedback-role   { font-size: 0.8rem; color: var(--text-secondary); }
.feedback-text   { font-size: 0.88rem; font-style: italic; color: var(--text-primary); margin: 0.35rem 0; line-height: 1.5; }

/* News Cards */
.news-card {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.news-card:last-child { border-bottom: none; }
.news-header  { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; flex-wrap: wrap; }
.news-summary { font-size: 0.88rem; color: var(--text-secondary); margin: 0.35rem 0; line-height: 1.5; }

/* Event Cards */
.event-card {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.event-card:last-child { border-bottom: none; }
.event-header { margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.event-meta   { font-size: 0.82rem; color: var(--text-secondary); }

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    padding: 0.75rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
    content: '▶ ';
    font-size: 0.7rem;
    color: var(--primary);
    transition: transform 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
}
details[open] .faq-question::before { transform: rotate(90deg); }
.faq-answer {
    padding: 0 0 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Wellness Cards */
.wellness-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.wellness-card:last-child { border-bottom: none; }
.wellness-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.wellness-body { flex: 1; }
.wellness-desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0.25rem 0 0; line-height: 1.5; }

/* Responsive adjustments for sub-page components */
@media (max-width: 600px) {
    .summary-cards { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .summary-card  { padding: 0.75rem; }
    .summary-value { font-size: 1.25rem; }
        .leave-label {
            width: auto;
            min-width: 60px;
            max-width: 80px;
            font-size: 0.78rem;
        }
    
        .leave-row {
            flex-wrap: wrap;
        }
    
        .tile-detail {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    
        .data-table {
            font-size: 0.78rem;
            min-width: 360px;
        }
    .data-table th,
    .data-table td { padding: 0.4rem 0.5rem; }
    .breadcrumb-bar { padding: 0.5rem 1rem; }
        .team-member {
            flex-wrap: wrap;
        }
    
        .team-status {
            width: 100%;
            padding-left: 48px;
            font-size: 0.78rem;
        }
}

/* tile-expanded: no forced column spanning — let auto-fit flow naturally */

/* Skeleton shimmer for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-secondary) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
.leave-as-of {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ── Login Page ──────────────────────────────────────── */
.login-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.login-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.login-card .logo svg {
    width: 64px;
    height: 64px;
    fill: #0078d4;
    margin-bottom: 1rem;
}
.login-card h1 {
    color: #201f1e;
    margin-bottom: 0.5rem;
}
.login-card p {
    color: #605e5c;
    margin-bottom: 2rem;
}
.login-btn {
    background: #0078d4;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #005a9e;
}
