/* 
  SarkariResize V6 "Official Authority" Theme
  Original Premium Dashboard Design
*/

:root {
    --brand-navy: #0f172a;      /* Slate 900 - Deep, authoritative blue */
    --brand-gold: #d97706;      /* Amber 600 - Official accent */
    --brand-gold-hover: #b45309;
    --bg-page: #f8fafc;        /* Slate 50 */
    --surface-main: #ffffff;
    --text-primary: #1e293b;   /* Slate 800 */
    --text-secondary: #64748b; /* Slate 500 */
    --border-light: #e2e8f0;   /* Slate 200 */
    
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-deep: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Header & Nav */
.auth-header {
    background-color: var(--brand-navy);
    color: white;
    padding: 1rem 0;
    border-bottom: 4px solid var(--brand-gold);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
}
.logo-highlight {
    color: var(--brand-gold);
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 2rem;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--brand-navy) 0%, #1e293b 100%);
    color: white;
    padding: 4rem 1rem 8rem 1rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}
.hero p {
    font-size: 1.125rem;
    color: #94a3b8;
    max-w: 600px;
    margin: 0 auto;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: -4rem auto 4rem auto;
    padding: 0 1rem;
}

.dashboard-card {
    background: var(--surface-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

/* Exam Selector Strip */
.exam-selector-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.current-exam-badge {
    background: var(--brand-navy);
    color: var(--brand-gold);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1rem;
}

.btn-change-exam {
    margin-left: auto;
    background: white;
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-navy);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-change-exam:hover { border-color: var(--brand-navy); }

/* Document Tabs */
.doc-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
}

.doc-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
}
.doc-tab:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.doc-tab.active {
    background: var(--brand-navy);
    color: white;
    border-color: var(--brand-navy);
    box-shadow: var(--shadow-soft);
}

/* Upload & Process Area */
.upload-zone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--brand-gold);
    background: #fffbeb;
}

.upload-icon {
    width: 64px;
    height: 64px;
    background: white;
    color: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.upload-zone h3 { font-size: 1.5rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 0.5rem; }
.upload-zone p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-navy);
    box-shadow: var(--shadow-soft);
}

/* Processing View */
.workspace-container {
    width: 100%;
    height: 450px;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.btn-primary {
    background: var(--brand-gold);
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.39);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4); }

/* Modal for Exam Selection */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    align-items: center;
}
.modal-search {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: #f8fafc url('data:image/svg+xml;utf8,<svg width="20" height="20" fill="none" stroke="%239ca3af" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>') no-repeat 0.75rem center;
}
.modal-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.exam-card-btn {
    text-align: left;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.exam-card-btn:hover { border-color: var(--brand-navy); box-shadow: var(--shadow-soft); }
.exam-card-btn strong { display: block; color: var(--brand-navy); margin-bottom: 0.25rem; }
.exam-card-btn span { font-size: 0.75rem; color: var(--text-secondary); display: block; line-height: 1.4; }

/* Dynamic Article & SEO Sections */
.seo-article {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}
.seo-article h2 { color: var(--brand-navy); font-weight: 800; font-size: 2rem; margin-bottom: 1.5rem; }
.seo-article h3 { color: var(--brand-navy); font-weight: 700; font-size: 1.5rem; margin: 2rem 0 1rem 0; }
.seo-article p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-size: 1.05rem; }
.seo-article ul { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.seo-article li { margin-bottom: 0.5rem; line-height: 1.6; }

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.specs-table th { background: var(--brand-navy); color: white; padding: 1rem; text-align: left; font-weight: 600; }
.specs-table td { padding: 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-primary); }
.specs-table tr:last-child td { border-bottom: none; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .auth-header { padding: 0.75rem 0; }
    .hero { padding: 3rem 1rem 6rem 1rem; }
    .hero h1 { font-size: 2.25rem; }
    
    .dashboard-container { margin-top: -3rem; }
    .dashboard-card { padding: 1.5rem; border-radius: 12px; }
    
    .exam-selector-strip { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.75rem; 
        padding: 1rem;
    }
    .btn-change-exam { width: 100%; margin-left: 0; text-align: center; }
    
    .doc-tabs { 
        overflow-x: auto; 
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .doc-tab { white-space: nowrap; padding: 0.5rem 1rem; font-size: 0.875rem; }
    
    .workspace-container { height: 350px; }
    .modal-content { height: 95vh; width: 95%; }
    .modal-grid { grid-template-columns: 1fr; }
    
    .seo-article h2 { font-size: 1.5rem; }
    .seo-article h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .upload-zone { padding: 2rem 1rem; min-height: 250px; }
    .btn-primary { font-size: 1rem; padding: 0.875rem; }
}
