/* ===== CSS VARIABLES ===== */
:root {
    /* LinkedIn-inspired Color Palette */
    --linkedin-blue: #0A66C2;
    --linkedin-blue-dark: #004182;
    --linkedin-blue-light: #70B5F9;
    --linkedin-blue-hover: #004182;
    --bg-primary: #000000;
    --bg-secondary: #1D2226;
    --bg-tertiary: #38434F;
    --bg-card: #1D2226;
    --bg-elevated: #283339;
    --bg-input: #38434F;
    --accent-primary: #0A66C2;
    --accent-secondary: #70B5F9;
    --accent-success: #057642;
    --accent-warning: #E7A33E;
    --accent-danger: #CC1016;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B7BF;
    --text-muted: #86888A;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(10, 102, 194, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== ICON SYSTEM ===== */
.icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 48px; height: 48px; }

/* ===== LAYOUT ===== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--linkedin-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-text span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    gap: 8px;
}

.stat-pill {
    background: var(--bg-elevated);
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.stat-pill .value {
    font-weight: 700;
    font-size: 16px;
    color: var(--linkedin-blue-light);
}

.stat-pill .label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Connection Status */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-danger);
}

.status-dot.connected {
    background: var(--accent-success);
}

.status-dot.connecting {
    background: var(--accent-warning);
    animation: pulse 1s infinite;
}

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

/* Chat Sources */
.chat-sources {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.chat-sources .sources-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-sources .source-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 12px;
}

.chat-sources .source-name {
    color: var(--text-secondary);
}

.chat-sources .source-relevance {
    background: var(--linkedin-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Relevance Badge */
.relevance-badge {
    background: var(--accent-success);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Chunk Badge */
.chunk-badge {
    background: var(--linkedin-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* AI Indexed Tag */
.doc-tag.indexed {
    background: var(--accent-success);
    color: white;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top-color: var(--linkedin-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Voice Processing */
.voice-orb.processing {
    background: var(--accent-warning);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(231, 163, 62, 0.5); }
    100% { box-shadow: 0 0 0 20px rgba(231, 163, 62, 0); }
}

/* ===== NAVIGATION ===== */
.nav-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.nav-tabs {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-tab.active {
    color: var(--linkedin-blue-light);
    background: var(--bg-primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--linkedin-blue);
    border-radius: 3px 3px 0 0;
}

.nav-tab .icon {
    color: inherit;
}

.tab-badge {
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.card-title .icon {
    color: var(--linkedin-blue-light);
}

.card-body {
    padding: 24px;
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--linkedin-blue);
    background: rgba(10, 102, 194, 0.05);
}

.upload-zone .upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--linkedin-blue-light);
}

.upload-zone h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 14px;
}

.upload-zone input[type="file"] {
    display: none;
}

/* ===== SEARCH ===== */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--linkedin-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--linkedin-blue-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--linkedin-blue-light);
    border: 1px solid var(--linkedin-blue);
}

.btn-secondary:hover {
    background: rgba(10, 102, 194, 0.1);
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-success {
    background: var(--accent-success);
    color: white;
}

/* ===== VOICE BUTTON ===== */
.voice-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--linkedin-blue);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover {
    background: var(--linkedin-blue-dark);
    transform: scale(1.05);
}

.voice-btn.recording {
    background: var(--accent-danger);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204, 16, 22, 0.5); }
    50% { box-shadow: 0 0 0 16px rgba(204, 16, 22, 0); }
}

/* ===== DOCUMENT GRID ===== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.document-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.document-card:hover {
    border-color: var(--linkedin-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.document-card .doc-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.doc-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon-wrapper.pdf { background: linear-gradient(135deg, #FF6B6B, #EE5A5A); }
.doc-icon-wrapper.doc { background: linear-gradient(135deg, #4E8FD9, #3B7DD8); }
.doc-icon-wrapper.img { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.doc-icon-wrapper.txt { background: linear-gradient(135deg, #2ECC71, #27AE60); }

.doc-icon-wrapper .icon {
    color: white;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.doc-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-tag {
    background: rgba(10, 102, 194, 0.15);
    color: var(--linkedin-blue-light);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

/* ===== VOICE INTERFACE ===== */
.voice-interface {
    text-align: center;
    padding: 40px 24px;
}

.voice-orb-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
}

.voice-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.voice-orb .icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.voice-orb.active {
    border-color: var(--linkedin-blue);
    box-shadow: var(--shadow-glow);
}

.voice-orb.active .icon {
    color: var(--linkedin-blue-light);
}

.voice-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--linkedin-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.voice-orb.active .voice-ring {
    opacity: 1;
    animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.voice-status {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.voice-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.voice-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.waveform {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 48px;
    margin: 24px 0;
}

.waveform.active {
    display: flex;
}

.wave-bar {
    width: 4px;
    background: var(--linkedin-blue);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 16px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 32px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 16px; animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

.transcript-box {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 24px;
    text-align: left;
    display: none;
}

.transcript-box.active {
    display: block;
}

.transcript-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.transcript-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== CHAT INTERFACE ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 75%;
    display: flex;
    gap: 12px;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: var(--linkedin-blue);
}

.chat-avatar .icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.chat-message.user .chat-avatar .icon {
    color: white;
}

.chat-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
}

.chat-message.ai .chat-bubble {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: var(--linkedin-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-timestamp {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.chat-message.user .chat-timestamp {
    color: rgba(255,255,255,0.7);
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    min-height: 48px;
    max-height: 120px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== FIELD VERIFY ===== */
.verify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.2), rgba(112, 181, 249, 0.1));
    border-radius: 100px;
    border: 1px solid rgba(10, 102, 194, 0.3);
}

.level-badge .level {
    font-weight: 700;
    color: var(--linkedin-blue-light);
}

.xp-section {
    margin-bottom: 24px;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.xp-label {
    font-size: 13px;
    color: var(--text-muted);
}

.xp-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--linkedin-blue-light);
}

.xp-bar {
    background: var(--bg-tertiary);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--linkedin-blue), var(--linkedin-blue-light));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.badges-section {
    margin-bottom: 24px;
}

.badges-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.badges-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.badge-item.earned {
    background: linear-gradient(135deg, #E7A33E, #D4942D);
    box-shadow: 0 4px 12px rgba(231, 163, 62, 0.3);
}

.badge-item.locked {
    background: var(--bg-tertiary);
    opacity: 0.4;
}

.badge-item .icon {
    color: white;
}

.badge-item.locked .icon {
    color: var(--text-muted);
}

.badge-item:hover.earned {
    transform: scale(1.1);
}

/* ===== VERIFY CARDS GRID ===== */
.verify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.verify-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: all 0.2s ease;
}

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

.verify-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.verify-card-icon.gps { background: linear-gradient(135deg, #057642, #046A3A); }
.verify-card-icon.photo { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.verify-card-icon.checklist { background: linear-gradient(135deg, #E7A33E, #D4942D); }
.verify-card-icon.signature { background: linear-gradient(135deg, #EC4899, #DB2777); }

.verify-card-icon .icon {
    color: white;
    width: 28px;
    height: 28px;
}

.verify-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.verify-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.verify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 16px;
}

.verify-status.pending { color: var(--text-muted); }
.verify-status.complete { color: var(--accent-success); }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ===== GPS DISPLAY ===== */
.gps-display {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 16px;
    display: none;
}

.gps-display.active {
    display: block;
}

.gps-coords {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--linkedin-blue-light);
    margin-bottom: 4px;
}

.gps-timestamp {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== PHOTO GRID ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.photo-slot {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    border: 1px dashed var(--border-color);
}

.photo-slot:hover {
    border-color: var(--linkedin-blue);
    background: rgba(10, 102, 194, 0.05);
}

.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-slot .icon {
    color: var(--text-muted);
}

/* ===== CHECKLIST ===== */
.checklist {
    margin-top: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-custom:hover {
    border-color: var(--linkedin-blue);
}

.checkbox-custom.checked {
    background: var(--accent-success);
    border-color: var(--accent-success);
}

.checkbox-custom .icon {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-custom.checked .icon {
    opacity: 1;
}

.checklist-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== PROGRESS RING ===== */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-ring {
    width: 100px;
    height: 100px;
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.progress-ring .bg {
    stroke: var(--bg-tertiary);
}

.progress-ring .progress {
    stroke: var(--linkedin-blue);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    text-anchor: middle;
    dominant-baseline: middle;
    font-size: 20px;
    font-weight: 700;
    fill: var(--text-primary);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-danger);
    color: white;
}

.modal-body {
    padding: 24px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
}

.toast.success { background: var(--accent-success); color: white; }
.toast.error { background: var(--accent-danger); color: white; }
.toast.info { background: var(--linkedin-blue); color: white; }

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

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state .empty-icon .icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header { padding: 0 16px; }
    .header-stats { display: none; }
    .nav-container { padding: 0 16px; }
    .main-content { padding: 16px; }
    .documents-grid { grid-template-columns: 1fr; }
    .verify-grid { grid-template-columns: 1fr; }
    .chat-message { max-width: 90%; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


/* ===== CASES STYLES ===== */
.cases-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.case-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.case-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #6b7280;
    margin-right: 8px;
}

.case-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.case-badge.open {
    background: #dbeafe;
    color: #1e40af;
}

.case-badge.in_progress {
    background: #fef3c7;
    color: #92400e;
}

.case-badge.resolved {
    background: #d1fae5;
    color: #065f46;
}

.case-badge.escalated {
    background: #fee2e2;
    color: #991b1b;
}

.case-priority {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.case-priority.low {
    background: #f3f4f6;
    color: #6b7280;
}

.case-priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.case-priority.high {
    background: #fed7aa;
    color: #9a3412;
}

.case-priority.critical {
    background: #fecaca;
    color: #991b1b;
}

.case-type {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.case-body {
    font-size: 14px;
}

.case-customer {
    margin-bottom: 8px;
}

.case-customer strong {
    display: block;
    margin-bottom: 2px;
}

.case-description {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 12px;
}

.case-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.sim-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.sim-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.sim-icon {
    font-size: 32px;
}

.sim-label {
    text-align: center;
}

.simulation-results {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    min-height: 200px;
    display: none;
}

.simulation-results.active {
    display: block;
}

.simulation-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
