/* 
 * Zambia DNRPC e-Services Portal - Main Stylesheet
 * Common CSS extracted from multiple templates
 * Generated: 2026-02-28 13:46:19
 * 
 * This CSS appears in 4 common blocks across templates
 */

/* ============================================
   Common Block 1 - Appears in 2 templates
   Templates: birth_registration.html, birth_registration.html
   ============================================ */
:root {
        --zambia-green: #198C19;
        --zambia-green-dark: #0E5A0E;
        --zambia-red: #CE1126;
        --zambia-orange: #FF8C00;
        --zambia-black: #000000;
    }
    
    body {
        background: linear-gradient(135deg, #f0f9f0 0%, #e6f4e6 100%);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    
    /* Public Form Container */
    .public-form-container {
        max-width: 900px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .form-card {
        background: white;
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(25, 140, 25, 0.08);
        border: 1px solid rgba(25, 140, 25, 0.1);
        overflow: hidden;
    }
    
    .form-header {
        background: linear-gradient(135deg, var(--zambia-green), var(--zambia-green-dark));
        padding: 2rem;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .form-header::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 1;
    }
    
    .form-header p {
        opacity: 0.9;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        font-size: 1rem;
    }
    
    .form-body {
        padding: 2rem;
    }
    
    /* Progress Steps - Simplified */
    .progress-steps {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2.5rem;
        position: relative;
        padding: 0 0.5rem;
    }
    
    .progress-steps::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        height: 2px;
        background: #e2e8f0;
        z-index: 1;
    }
    
    .step {
        position: relative;
        z-index: 2;
        text-align: center;
        flex: 1;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.75rem;
        font-weight: 700;
        color: #64748b;
        transition: all 0.2s ease;
    }
    
    .step.active .step-circle {
        background: var(--zambia-green);
        border-color: var(--zambia-green);
        color: white;
        box-shadow: 0 0 0 4px rgba(25, 140, 25, 0.1);
    }
    
    .step.completed .step-circle {
        background: var(--zambia-green);
        border-color: var(--zambia-green);
        color: white;
    }
    
    .step-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #64748b;
    }
    
    .step.active .step-label {
        color: var(--zambia-green);
    }
    
    /* Form Sections */
    .form-section {
        background: #f8fafc;
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
    }
    
    .section-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        color: var(--zambia-green);
        font-weight: 700;
        font-size: 1.1rem;
    }
    
    .section-title i {
        font-size: 1.2rem;
    }
    
    /* Form Controls */
    .form-label {
        font-weight: 600;
        font-size: 0.875rem;
        color: #1e293b;
        margin-bottom: 0.5rem;
    }
    
    .form-control, .form-select {
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: var(--zambia-green);
        box-shadow: 0 0 0 4px rgba(25, 140, 25, 0.1);
    }
    
    .form-text {
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 0.375rem;
    }
    
    /* NRC Input */
    .nrc-input {
        font-family: 'Courier New', monospace;
        letter-spacing: 1px;
    }
    
    /* Search Card */
    .search-card {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-left: 4px solid var(--zambia-green);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    /* Vital Status Badges */
    .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.85rem;
    }
    
    .status-alive {
        background: rgba(25, 140, 25, 0.1);
        color: var(--zambia-green);
        border: 1px solid var(--zambia-green);
    }
    
    .status-deceased {
        background: rgba(206, 17, 38, 0.1);
        color: var(--zambia-red);
        border: 1px solid var(--zambia-red);
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--zambia-green), var(--zambia-green-dark));
        border: none;
        color: white;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, var(--zambia-green-dark), #0a420a);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(25, 140, 25, 0.3);
    }
    
    .btn-outline-primary {
        border: 2px solid var(--zambia-green);
        color: var(--zambia-green);
        background: transparent;
    }
    
    .btn-outline-primary:hover {
        background: var(--zambia-green);
        color: white;
    }
    
    .btn-outline-secondary {
        border: 2px solid #e2e8f0;
        color: #64748b;
    }
    
    .btn-outline-secondary:hover {
        background: #e2e8f0;
        color: #1e293b;
    }
    
    /* Fee Badge */
    .fee-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        background: rgba(25, 140, 25, 0.08);
        color: var(--zambia-green);
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    /* Declaration */
    .declaration-box {
        background: rgba(206, 17, 38, 0.02);
        border: 2px solid rgba(206, 17, 38, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Success Card */
    .success-card {
        background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        border: 2px solid var(--zambia-green);
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        background: var(--zambia-green);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        color: white;
        font-size: 2.5rem;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .form-header {
            padding: 1.5rem;
        }
        
        .form-header h1 {
            font-size: 1.5rem;
        }
        
        .form-body {
            padding: 1.5rem;
        }
        
        .progress-steps {
            margin-bottom: 2rem;
        }
        
        .step-circle {
            width: 35px;
            height: 35px;
            font-size: 0.9rem;
        }
        
        .step-label {
            font-size: 0.7rem;
        }
        
        .form-section {
            padding: 1.25rem;
        }
    }
    
    @media (max-width: 576px) {
        .public-form-container {
            margin: 1rem auto;
            padding: 0 0.75rem;
        }
        
        .form-body {
            padding: 1.25rem;
        }
        
        .progress-steps {
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .step {
            flex: 0 0 calc(33.333% - 0.5rem);
        }
        
        .step-circle {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
        }
    }

/* ============================================
   Common Block 2 - Appears in 3 templates
   Templates: dashboard.html, dashboard.html, dashboard.html
   ============================================ */
/* Public Dashboard Container */
    .public-dashboard {
        min-height: 100vh;
        background: linear-gradient(135deg, #f0f9f0 0%, #e6f4e6 100%);
        padding: 1.5rem;
    }
    
    .dashboard-wrapper {
        max-width: 1280px;
        margin: 0 auto;
    }
    
    /* Welcome Card - Public User View */
    .welcome-card {
        background: linear-gradient(135deg, var(--zambia-green), var(--zambia-green-dark));
        border-radius: 20px;
        padding: 1.75rem;
        margin-bottom: 2rem;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(25, 140, 25, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .welcome-card::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }
    
    .user-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 1rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        font-size: 0.85rem;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Stats Cards - Simplified for Public */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .stat-item {
        background: white;
        border-radius: 16px;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.03);
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }
    
    .stat-item:hover {
        border-color: var(--zambia-green);
        box-shadow: 0 8px 25px rgba(25, 140, 25, 0.1);
    }
    
    .stat-icon-sm {
        width: 48px;
        height: 48px;
        background: rgba(25, 140, 25, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--zambia-green);
        font-size: 1.35rem;
    }
    
    .stat-info-sm {
        flex: 1;
    }
    
    .stat-label-sm {
        color: #64748b;
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-value-sm {
        color: #1e293b;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1;
    }
    
    /* Section Headers */
    .section-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .section-title i {
        color: var(--zambia-green);
        font-size: 1.25rem;
    }
    
    .section-title h2 {
        color: #1e293b;
        font-size: 1.35rem;
        font-weight: 600;
        margin: 0;
    }
    
    .section-title span {
        color: #64748b;
        font-size: 0.9rem;
        font-weight: normal;
    }
    
    .view-all {
        color: var(--zambia-green);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .view-all:hover {
        color: var(--zambia-green-dark);
        text-decoration: underline;
    }
    
    /* Service Grid - Public Focus */
    .service-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .service-tile {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    .service-tile:hover {
        border-color: var(--zambia-green);
        box-shadow: 0 10px 30px rgba(25, 140, 25, 0.1);
        transform: translateY(-2px);
    }
    
    .service-icon-wrapper {
        width: 56px;
        height: 56px;
        background: rgba(25, 140, 25, 0.08);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--zambia-green);
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        transition: all 0.2s ease;
    }
    
    .service-tile:hover .service-icon-wrapper {
        background: var(--zambia-green);
        color: white;
    }
    
    .service-tile h3 {
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .service-tile p {
        color: #64748b;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        flex: 1;
    }
    
    .service-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .fee-badge {
        background: rgba(25, 140, 25, 0.08);
        color: var(--zambia-green);
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .duration-badge {
        color: #64748b;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .service-btn {
        background: var(--zambia-green);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        font-weight: 500;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.2s ease;
        cursor: pointer;
        width: 100%;
    }
    
    .service-btn:hover {
        background: var(--zambia-green-dark);
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(25, 140, 25, 0.3);
    }
    
    .service-btn-outline {
        background: transparent;
        color: var(--zambia-green);
        border: 1.5px solid var(--zambia-green);
    }
    
    .service-btn-outline:hover {
        background: var(--zambia-green);
        color: white;
    }
    
    /* External Service Card - Passport */
    .external-service {
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        border: 1px dashed var(--zambia-green);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .external-service-icon {
        width: 60px;
        height: 60px;
        background: var(--zambia-green);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
    }
    
    .external-service-content {
        flex: 1;
    }
    
    .external-service h4 {
        color: #1e293b;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .external-service p {
        color: #64748b;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .external-link-btn {
        background: white;
        color: var(--zambia-green);
        border: 2px solid var(--zambia-green);
        border-radius: 10px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s ease;
        text-decoration: none;
    }
    
    .external-link-btn:hover {
        background: var(--zambia-green);
        color: white;
    }
    
    /* Recent Activity - Public View */
    .activity-card {
        background: white;
        border-radius: 16px;
        padding: 1.5rem;
        border: 1px solid #e2e8f0;
        margin-bottom: 2rem;
    }
    
    .activity-list {
        margin-top: 1rem;
    }
    
    .activity-item {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .activity-item:last-child {
        border-bottom: none;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        background: rgba(25, 140, 25, 0.08);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--zambia-green);
        margin-right: 1rem;
    }
    
    .activity-details {
        flex: 1;
    }
    
    .activity-title {
        color: #1e293b;
        font-weight: 500;
        margin-bottom: 0.2rem;
    }
    
    .activity-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: #64748b;
        font-size: 0.8rem;
    }
    
    .status {
        padding: 0.2rem 0.75rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .status-pending {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
    }
    
    .status-processing {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    .status-approved {
        background: rgba(25, 140, 25, 0.1);
        color: var(--zambia-green);
    }
    
    /* Quick Links */
    .quick-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .quick-link {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem;
        text-align: center;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .quick-link:hover {
        border-color: var(--zambia-green);
        background: rgba(25, 140, 25, 0.02);
    }
    
    .quick-link i {
        color: var(--zambia-green);
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-link span {
        color: #1e293b;
        font-size: 0.9rem;
        font-weight: 500;
        display: block;
    }
    
    /* Info Alerts */
    .info-alert {
        background: rgba(59, 130, 246, 0.05);
        border-left: 4px solid #3b82f6;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .info-alert i {
        color: #3b82f6;
        font-size: 1.1rem;
        margin-top: 0.1rem;
    }
    
    .info-alert p {
        color: #1e293b;
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Mobile Responsive */
    @media (max-width: 768px) {
        .public-dashboard {
            padding: 1rem;
        }
        
        .service-grid {
            grid-template-columns: 1fr;
        }
        
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .external-service {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .section-header {
            flex-direction: column;
            gap: 0.5rem;
            align-items: flex-start;
        }
        
        .quick-links {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 480px) {
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .quick-links {
            grid-template-columns: 1fr;
        }
        
        .activity-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .activity-icon {
            margin-right: 0;
        }
    }
    
    /* Dark Mode */
    @media (prefers-color-scheme: dark) {
        .public-dashboard {
            background: linear-gradient(135deg, #0a1f0a 0%, #0f290f 100%);
        }
        
        .stat-item,
        .service-tile,
        .activity-card,
        .quick-link {
            background: #1a1a1a;
            border-color: #404040;
        }
        
        .stat-value-sm,
        .service-tile h3,
        .activity-title,
        .quick-link span {
            color: #e0e0e0;
        }
        
        .external-service {
            background: #1a1a1a;
        }
        
        .external-service h4 {
            color: #e0e0e0;
        }
        
        .section-title h2 {
            color: #e0e0e0;
        }
    }

/* ============================================
   Common Block 3 - Appears in 2 templates
   Templates: death_registration.html, death_registration.html
   ============================================ */
:root {
    --dnrpc-green: #198C19;
    --dnrpc-green-dark: #0E5A0E;
    --dnrpc-gold: #CE1126;
    --dnrpc-gold-dark: #A60D1F;
    --dnrpc-gray: #6c757d;
}

body {
    background-color: #f8fafc;
}

/* Zambia-themed cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(25, 140, 25, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--dnrpc-green) 0%, var(--dnrpc-green-dark) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.card-header h5, .card-header h6 {
    margin: 0;
    font-weight: 600;
}

/* Progress steps - Zambia themed */
.progress-step {
    position: relative;
    z-index: 2;
    flex: 1;
}

.progress-step .step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
    color: var(--dnrpc-gray);
}

.progress-step.active .step-number {
    background: var(--dnrpc-green);
    border-color: var(--dnrpc-green);
    color: white;
    box-shadow: 0 0 0 5px rgba(25, 140, 25, 0.1);
}

.progress-step.completed .step-number {
    background: var(--dnrpc-green);
    border-color: var(--dnrpc-green);
    color: white;
}

.progress-step .step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dnrpc-gray);
}

.progress-step.active .step-label {
    color: var(--dnrpc-green);
}

/* Progress line */
.progress-line {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: var(--dnrpc-green);
    width: 0%;
    transition: width 0.3s ease;
}

/* Form controls */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1.5px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--dnrpc-green);
    box-shadow: 0 0 0 4px rgba(25, 140, 25, 0.1);
}

/* Select2 customization */
.select2-container--bootstrap-5 .select2-selection {
    border: 1.5px solid #e9ecef !important;
    border-radius: 0.5rem !important;
    min-height: 45px !important;
    padding: 0.375rem 0.75rem !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--dnrpc-green) !important;
    box-shadow: 0 0 0 4px rgba(25, 140, 25, 0.1) !important;
}

/* Search result card */
.search-result-card {
    border-left: 4px solid var(--dnrpc-green);
    background: linear-gradient(to right, rgba(25, 140, 25, 0.02), white);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dnrpc-green) 0%, var(--dnrpc-green-dark) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dnrpc-green-dark) 0%, #0a420a 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(25, 140, 25, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--dnrpc-green);
    color: var(--dnrpc-green);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--dnrpc-green);
    color: white;
    border-color: var(--dnrpc-green);
}

/* NRC input formatting */
.nrc-input {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--dnrpc-gold);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23CE1126'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23CE1126' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--dnrpc-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198C19' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    color: var(--dnrpc-gold);
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        padding: 1rem;
    }
    
    .progress-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .progress-step .step-label {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Zambia coat of arms watermark */
.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   Common Block 4 - Appears in 3 templates
   Templates: profile.html, profile.html, profile.html
   ============================================ */
.profile-header {
        background: linear-gradient(135deg, var(--primary-color), #3b82f6);
        color: white;
        padding: 3rem 2rem;
        border-radius: 15px;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    .profile-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 48px;
        margin-bottom: 1rem;
        border: 5px solid white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .profile-tabs {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .nav-tabs {
        border-bottom: 1px solid #e2e8f0;
        padding: 0 1.5rem;
        background: #f8fafc;
    }
    
    .nav-tabs .nav-link {
        border: none;
        color: #64748b;
        padding: 1rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .nav-tabs .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-tabs .nav-link.active {
        color: var(--primary-color);
        background: white;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .tab-content {
        padding: 2rem;
    }
    
    .profile-field {
        margin-bottom: 1.5rem;
    }
    
    .field-label {
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }
    
    .field-label i {
        width: 20px;
        margin-right: 10px;
    }
    
    .field-value {
        padding: 0.75rem 1rem;
        background: #f8fafc;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        font-size: 1rem;
        color: #334155;
    }
    
    .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .verified-badge {
        background: #dcfce7;
        color: #059669;
    }
    
    .pending-badge {
        background: #fef3c7;
        color: #d97706;
    }
    
    .category-badge {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        padding: 0.25rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .edit-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
    }
    
    .activity-log {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .activity-item {
        padding: 1rem;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.3s ease;
    }
    
    .activity-item:hover {
        background: #f8fafc;
    }
    
    .activity-item:last-child {
        border-bottom: none;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
    }
    
    .activity-icon.login { background: #dbeafe; color: #1d4ed8; }
    .activity-icon.update { background: #dcfce7; color: #059669; }
    .activity-icon.verify { background: #fef3c7; color: #d97706; }
    .activity-icon.security { background: #fee2e2; color: #dc2626; }
    
    .form-edit .field-value {
        background: white;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    
    .form-edit .field-value:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }

/* Stat Card Styles - Add to your main.css */
.stat-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stat-value {
    font-size: 2rem;
    line-height: 1.2;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hover-shadow {
    transition: box-shadow 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.transition-all {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-icon i {
        font-size: 1.5rem !important;
    }
}