/* ============================================
   SOLANKI FAMILY TRUST LITIGATION - CASE PORTAL
   ============================================ */

:root {
    --primary: #1a2332;
    --primary-light: #2a3a4e;
    --accent: #8b6914;
    --accent-light: #c49b2a;
    --accent-bg: #fdf8ed;
    --danger: #8b1a1a;
    --danger-light: #fef2f2;
    --success: #1a5c3a;
    --success-light: #f0fdf4;
    --warning: #7c4a00;
    --warning-light: #fffbeb;
    --text: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg: #f7f5f0;
    --white: #ffffff;
    --border: #e2ddd3;
    --border-light: #f0ece4;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

/* ---- LOGIN PAGE ---- */
.login-body {
    background: linear-gradient(135deg, var(--primary) 0%, #0f1720 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.login-card h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.login-notice {
    font-size: 0.8rem;
    color: var(--danger);
    background: var(--danger-light);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,105,20,0.1);
}

.btn-login {
    width: 100%;
    padding: 13px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
    background: var(--primary-light);
}

.btn-login:active {
    transform: scale(0.98);
}

.error-message {
    background: var(--danger-light);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.85rem;
    border-left: 3px solid var(--danger);
}

.login-footer {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 24px;
}

/* ---- NAVIGATION ---- */
.main-nav {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.nav-brand svg {
    opacity: 0.7;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-logout {
    color: rgba(255,200,200,0.8) !important;
    margin-left: 8px;
}

.nav-logout:hover {
    background: rgba(255,100,100,0.15) !important;
    color: #ffaaaa !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - 60px - 120px);
}

/* ---- PAGE HERO ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,105,20,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

.page-hero .hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 700px;
    line-height: 1.7;
    position: relative;
}

.page-hero .hero-badge {
    display: inline-block;
    background: rgba(139,105,20,0.3);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    position: relative;
}

/* ---- STAT CARDS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }

/* ---- CONTENT CARDS ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.card-header .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.accent { background: var(--accent-bg); color: var(--accent); }
.card-icon.danger { background: var(--danger-light); color: var(--danger); }
.card-icon.success { background: var(--success-light); color: var(--success); }
.card-icon.warning { background: var(--warning-light); color: var(--warning); }

.card p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card p:last-child {
    margin-bottom: 0;
}

/* ---- TWO COLUMN LAYOUT ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 18px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-item.critical .timeline-dot {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(139,26,26,0.15);
}

.timeline-item.positive .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.warning .timeline-dot {
    background: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 0 4px rgba(124,74,0,0.15);
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.timeline-item.critical .timeline-date { color: var(--danger); }
.timeline-item.positive .timeline-date { color: var(--success); }
.timeline-item.warning .timeline-date { color: var(--warning); }

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.timeline-item.critical .timeline-content {
    border-left: 3px solid var(--danger);
}

.timeline-item.warning .timeline-content {
    border-left: 3px solid var(--warning);
}

.timeline-item.positive .timeline-content {
    border-left: 3px solid var(--success);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.tag-critical { background: var(--danger-light); color: var(--danger); }
.tag-evidence { background: var(--accent-bg); color: var(--accent); }
.tag-legal { background: #eef2ff; color: #3730a3; }
.tag-action { background: var(--warning-light); color: var(--warning); }

/* ---- EVIDENCE SECTION ---- */
.evidence-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    border-left: 4px solid var(--accent);
}

.evidence-card.critical {
    border-left-color: var(--danger);
}

.evidence-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.evidence-card .evidence-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.evidence-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.evidence-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.evidence-highlight {
    background: var(--danger-light);
    border: 1px solid rgba(139,26,26,0.15);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
}

.evidence-highlight p {
    color: var(--danger);
    font-weight: 500;
    margin: 0;
}

.evidence-highlight.warning {
    background: var(--warning-light);
    border-color: rgba(124,74,0,0.15);
}

.evidence-highlight.warning p {
    color: var(--warning);
}

/* ---- DOCUMENT LIST ---- */
.doc-list {
    list-style: none;
}

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.doc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.doc-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.doc-info .doc-date {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ---- PARTIES TABLE ---- */
.parties-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.parties-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.parties-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.parties-table tr:hover td {
    background: rgba(247,245,240,0.5);
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-settlor { background: #e0e7ff; color: #3730a3; }
.role-beneficiary { background: var(--success-light); color: var(--success); }
.role-trustee { background: var(--warning-light); color: var(--warning); }
.role-contestant { background: var(--accent-bg); color: var(--accent); }
.role-attorney { background: #f0f4f8; color: #475569; }

/* ---- LEGAL ARGUMENTS ---- */
.legal-argument {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.legal-argument .argument-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-argument h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.legal-argument p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-quote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    background: var(--accent-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 16px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.legal-cite {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: normal;
    display: block;
    margin-top: 8px;
}

/* ---- ALERT BOX ---- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-danger {
    background: var(--danger-light);
    border: 1px solid rgba(139,26,26,0.15);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid rgba(124,74,0,0.15);
    color: var(--warning);
}

.alert-info {
    background: #eef2ff;
    border: 1px solid rgba(55,48,163,0.15);
    color: #3730a3;
}

/* ---- SECTION HEADERS ---- */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.6);
    padding: 32px 24px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer strong {
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}

.footer-meta {
    margin-top: 12px;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }
    
    .page-hero {
        padding: 32px 24px;
    }
    
    .page-hero h1 {
        font-size: 1.6rem;
    }
    
    .two-col, .three-col {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 24px;
    }
    
    .timeline::before {
        left: 18px;
    }
    
    .timeline-item {
        padding-left: 52px;
    }
    
    .timeline-dot {
        left: 8px;
    }
    
    .parties-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}
