/* 
 * Veterans / Pensioners Registration Portal
 * Custom Design System (Vanilla CSS + Bootstrap 5 extensions)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: HSL(256, 70%, 50%);
    --primary-hover: HSL(256, 70%, 40%);
    --secondary-color: HSL(174, 80%, 40%);
    --secondary-hover: HSL(174, 80%, 30%);
    --accent-color: HSL(34, 95%, 50%);
    
    --bg-main: HSL(220, 25%, 97%);
    --bg-card: HSL(0, 0%, 100%);
    --text-main: HSL(224, 30%, 15%);
    --text-muted: HSL(224, 15%, 45%);
    
    --border-color: HSL(220, 20%, 90%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-main: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(100, 80, 220, 0.12), 0 8px 20px -8px rgba(100, 80, 220, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(100, 80, 220, 0.06);
}

/* Card & Glass Panel Styling */
.card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(100, 80, 220, 0.2);
}

.card-stat {
    border-left: 5px solid var(--primary-color);
}

.card-stat.stat-pensioners { border-left-color: var(--secondary-color); }
.card-stat.stat-volunteers { border-left-color: var(--accent-color); }
.card-stat.stat-verified { border-left-color: HSL(145, 80%, 40%); }

/* Dashboard Widgets */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgb(242, 240, 253) 0%, rgb(220, 219, 252) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-main);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(100, 80, 220, 0.05);
    filter: blur(50px);
}

/* Buttons */
.btn-primary-premium {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(100, 80, 220, 0.3);
    transition: var(--transition-fast);
}

.btn-primary-premium:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(100, 80, 220, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary-premium {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(30, 200, 180, 0.3);
    transition: var(--transition-fast);
}

.btn-secondary-premium:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 6px 20px rgba(30, 200, 180, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Form Styles */
.form-section-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background-color: HSL(220, 20%, 98%);
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(100, 80, 220, 0.15);
}

/* Multi-step Navigation Form Toggles */
.reg-type-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    background: var(--bg-card);
}

.reg-type-card.active {
    border-color: var(--primary-color);
    background: rgba(100, 80, 220, 0.04);
}

.reg-type-card i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.reg-type-card.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Maps Styling */
#district-map {
    height: 450px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    z-index: 1;
}

/* Footer rules */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 2rem 0;
}

/* Print Certificate Watermark and layouts */
@media print {
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-cert-card {
        border: 4px double #333 !important;
        padding: 3rem !important;
        margin: 1rem !important;
        box-shadow: none !important;
        position: relative;
    }
    
    .print-watermark {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-35deg);
        opacity: 0.08;
        font-size: 6rem;
        font-weight: 800;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 10px;
        white-space: nowrap;
        pointer-events: none;
        z-index: 0;
    }
}
