/* ============================================
   AMDB Form Fillup Portal - Custom Styles
   ============================================ */

/* --- Top Bar --- */
.top-bar {
    background: #1a3a5c;
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}

.top-bar-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Main Header --- */
.main-header {
    background: linear-gradient(135deg, #0a1f3a 0%, #0d2b4e 30%, #1a4a7a 60%, #2a6cb5 100%);
    color: #fff;
    padding: 28px 0 20px 0;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(42, 108, 181, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.header-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(245, 166, 35, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.header-emblem-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-emblem {
    height: 90px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.header-caption {
    position: relative;
    z-index: 1;
}

.header-govt-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #0a1f3a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

.header-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #ffffff 0%, #f0e6c5 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 15px;
    margin: 0 0 4px 0;
    opacity: 0.92;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-sub-icon {
    font-size: 14px;
    opacity: 0.7;
}

.header-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #f5a623 20%, #f7c948 50%, #f5a623 80%, transparent 100%);
}

.header-divider-star {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #f5a623;
    font-size: 18px;
    text-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
    background: #0d2b4e;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #f5a623;
    z-index: 2;
}

/* --- Navigation --- */
.nav-custom {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.nav-custom .nav-link {
    color: #1a3a5c;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.2s;
}

.nav-custom .nav-link:hover,
.nav-custom .nav-link.active {
    background: #1a3a5c;
    color: #fff;
}

.nav-custom .nav-link.disabled,
.nav-custom .nav-link.disabled:hover {
    background: transparent;
    color: #a0aec0;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e8f0fe 100%);
    padding: 40px 0;
    border-bottom: 1px solid #d0d8e8;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #0d2b4e;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-status-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: inline-block;
    min-width: 180px;
    border: 1px solid #e8edf5;
}

.status-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.status-label {
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.status-value {
    font-size: 22px;
    font-weight: 700;
    color: #2f855a;
    margin-top: 4px;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0d2b4e;
    margin-bottom: 8px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f5a623, #f7c948);
    border-radius: 2px;
}

/* --- Info Cards --- */
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8edf5;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #c0d0e8;
}

.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.bg-primary-soft {
    background: #e8f0fe;
}

.bg-success-soft {
    background: #e6f7ee;
}

.bg-warning-soft {
    background: #fef7e0;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.info-card-text {
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.5;
}

.info-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #2a6cb5;
    transition: all 0.2s;
}

.info-card:hover .info-card-link {
    color: #1a4a7a;
}

.info-card-link.muted {
    color: #a0aec0;
}

.info-card:hover .info-card-link.muted {
    color: #a0aec0;
}

/* --- Action Cards --- */
.action-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 2px solid #e8edf5;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2a6cb5, #5b42f3, #00ddeb);
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: #2a6cb5;
}

.action-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2a6cb5, #5b42f3);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-card-badge.coming-soon {
    background: linear-gradient(135deg, #a0aec0, #718096);
}

.action-card-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.action-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d2b4e;
    margin-bottom: 10px;
}

.action-card-text {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.action-card-footer {
    border-top: 1px solid #e8edf5;
    padding-top: 16px;
}

.action-card-btn {
    font-size: 15px;
    font-weight: 600;
    color: #2a6cb5;
    transition: all 0.2s;
}

.action-card:hover .action-card-btn {
    color: #1a4a7a;
    letter-spacing: 0.5px;
}

.action-card-btn.muted {
    color: #a0aec0;
}

/* Disabled Card */
.disabled-card {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.4);
}

.disabled-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #e8edf5;
}

/* --- Footer --- */
.main-footer {
    background: #0d2b4e;
    color: #cbd5e0;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 4px solid #f5a623;
}

.main-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.main-footer .small {
    font-size: 12px;
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-emblem {
        height: 60px;
        margin-bottom: 10px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-status-card {
        margin-top: 20px;
        min-width: 140px;
    }

    .action-card {
        padding: 24px 20px;
    }
}