/* Corporate Modern Minimalist Theme */
:root {
    --bg-body: #fafafa;
    --bg-surface: #ffffff;
    --border-color: #e4e4e7;
    --border-hover: #d4d4d8;
    
    --text-main: #09090b;
    --text-muted: #71717a;
    --text-subtle: #a1a1aa;
    
    --accent-btn-bg: #09090b;
    --accent-btn-text: #ffffff;
    --accent-btn-hover: #27272a;
    
    --accent-blue: #0284c7;
    --accent-blue-bg: #f0f9ff;
    --accent-blue-border: #bae6fd;
    
    --warning-bg: #fffbe3;
    --warning-border: #fde68a;
    --warning-text: #78350f;
    
    --success-color: #16a34a;
    --success-bg: #f0fdf4;
    
    --radius-main: 6px;
    --radius-sm: 4px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body.dark-mode {
    --bg-body: #09090b;
    --bg-surface: #18181b;
    --border-color: #27272a;
    --border-hover: #3f3f46;
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    
    --accent-btn-bg: #f4f4f5;
    --accent-btn-text: #09090b;
    --accent-btn-hover: #e4e4e7;
    
    --accent-blue: #38bdf8;
    --accent-blue-bg: rgba(56, 189, 248, 0.08);
    --accent-blue-border: rgba(56, 189, 248, 0.2);
    
    --warning-bg: rgba(251, 191, 36, 0.08);
    --warning-border: rgba(251, 191, 36, 0.25);
    --warning-text: #fde68a;
    
    --success-color: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.08);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 4rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.app-container {
    width: 100%;
    max-width: 760px;
}

/* Navbar (No Logo) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.brand-title {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.theme-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.theme-btn:hover {
    border-color: var(--border-hover);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.header h1 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Wizard Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-sm);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-step.active .step-num {
    background: var(--accent-btn-bg);
    border-color: var(--accent-btn-bg);
    color: var(--accent-btn-text);
}

.step-text {
    font-size: 0.82rem;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin: 0 0.6rem;
}

.progress-line.active {
    background: var(--text-main);
}

/* Screen Transitions */
.wizard-screen {
    display: none;
    animation: fadeIn 0.18s ease-in-out;
}

.wizard-screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen-title {
    text-align: center;
    margin-bottom: 1.8rem;
}

.screen-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.screen-title p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.platform-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.platform-card:hover:not(.disabled) {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.platform-card.active {
    border-color: var(--accent-blue);
    background: var(--accent-blue-bg);
}

.platform-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-body);
}

.platform-icon { width: 20px; height: 20px; }

.platform-tag {
    margin-left: auto;
    font-size: 0.68rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Choice Cards */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }

.choice-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    padding: 1.5rem 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}

.choice-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.choice-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.choice-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.choice-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1.2rem;
    flex: 1;
}

.choice-action {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tutorial Steps */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.step-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.step-content strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.15rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.inline-link {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 500;
}

/* Dropzone Upload Boxes */
.dropzone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) { .dropzone-grid { grid-template-columns: 1fr; } }

.dropzone {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-main);
    padding: 2.2rem 1.2rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    position: relative;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--text-main);
    background: var(--bg-body);
}

.dropzone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem auto;
    color: var(--text-main);
}

.dropzone h3 { font-size: 0.95rem; font-weight: 600; }
.file-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.file-name {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
    background: var(--success-bg);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
}

/* Primary & Secondary Buttons */
.screen-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.primary-btn {
    background: var(--accent-btn-bg);
    color: var(--accent-btn-text);
    border: 1px solid transparent;
    padding: 0.65rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
    margin-left: auto;
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-btn-hover);
}

.primary-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.secondary-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.secondary-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-body);
}

/* Results Dashboard Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.1rem;
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.stat-card.highlight {
    border-color: var(--accent-blue-border);
    background: var(--accent-blue-bg);
}

.stat-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-top: 0.2rem;
}

/* Deactivated Accounts Disclaimer Banner */
.disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-main);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.disclaimer-banner svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Filter Controls & User List */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

.badge {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

.list-controls {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#search-input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
}

#search-input:focus {
    border-color: var(--text-main);
}

.list-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.user-list { list-style: none; }

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.user-item:last-child { border-bottom: none; }
.user-item:hover { background: var(--bg-body); }

/* NEW: Checkbox and Visited State Styles */
.user-info { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.visited-cb {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--text-main);
}

.user-item.visited {
    background-color: var(--bg-body);
}

.user-item.visited .username-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

.user-item.visited .user-link {
    opacity: 0.5;
}

.username-text {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-main);
    transition: color 0.15s ease;
}

.user-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.user-link:hover {
    background: var(--bg-body);
    border-color: var(--border-hover);
}