/* CapSU Request System - User-facing CSS */

:root {
    --primary-dark: #1a2a4a;
    --primary-navy: #1a3a6b;
    --accent-gold: #c9a84c;
    --accent-gold-dark: #a8883a;
    --white: #ffffff;
    --light-bg: #f4f6fb;
    --text-muted: #6c757d;
    --border-color: #dce3f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--light-bg);
    color: #222;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--primary-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-header .navbar {
    padding: 10px 0;
}

.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white) !important;
    text-decoration: none;
}

.site-header .navbar-brand .brand-logo-circle {
    width: 46px;
    height: 46px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
    overflow: hidden;
}

.site-header .brand-text {
    line-height: 1.2;
}

.site-header .brand-text .brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.site-header .brand-text .brand-subtitle {
    font-size: 0.72rem;
    color: var(--accent-gold);
    display: block;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
    background: rgba(201,168,76,0.1);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(201,168,76,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(201,168,76,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-banner .hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.hero-banner .hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-seal {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin: 0 auto;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    margin: 0 0 24px 0;
}

.section-divider.center {
    margin: 0 auto 24px auto;
}

/* ===== REQUEST TYPE CARDS ===== */
.request-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.request-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 30px rgba(26,58,107,0.15);
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}

.request-card:hover::before {
    transform: scaleX(1);
}

.request-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin: 0 auto 16px;
    transition: all 0.25s;
}

.request-card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--white);
}

.request-card .card-code {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.request-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.request-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.request-card .btn-request {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.request-card:hover .btn-request {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== TRACKING SECTION ===== */
.track-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    padding: 50px 0;
    color: var(--white);
}

.track-section h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
}

.track-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.track-input-group {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.track-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.track-input-group button {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.track-input-group button:hover {
    background: var(--accent-gold-dark);
}

/* ===== STATUS TIMELINE ===== */
.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-step {
    position: relative;
    padding: 10px 0 10px 20px;
}

.timeline-step .step-dot {
    position: absolute;
    left: -24px;
    top: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
}

.timeline-step.active .step-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold);
}

.timeline-step.done .step-dot {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

.timeline-step.rejected .step-dot {
    background: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}

.timeline-step .step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
}

.timeline-step.active .step-label,
.timeline-step.done .step-label {
    color: var(--primary-navy);
}

/* ===== FORMS ===== */
.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(26,42,74,0.08);
    border: 1px solid var(--border-color);
}

.form-label {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.btn-primary-custom {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,42,74,0.25);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-1px);
}

/* ===== ALERTS ===== */
.alert-success-custom {
    background: #d4edda;
    border-left: 4px solid #198754;
    border-radius: 8px;
    padding: 16px 20px;
    color: #155724;
}

.alert-danger-custom {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 16px 20px;
    color: #721c24;
}

/* ===== REQUEST DETAILS ===== */
.detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
}

.tracking-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 2px;
    background: var(--light-bg);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    display: inline-block;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 36px 0 20px;
}

.site-footer h6 {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.site-footer p, .site-footer a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    line-height: 1.8;
}

.site-footer a:hover {
    color: var(--accent-gold);
}

.site-footer .footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.site-footer .footer-bottom {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ===== TYPE BADGE ===== */
.type-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-navy);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== BRAND LOGO IMAGE ===== */
.brand-logo-img {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.brand-logo-img--circle {
    border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 1.5rem; }
    .form-card { padding: 24px 18px; }
    .track-input-group { flex-direction: column; }
    .track-input-group input,
    .track-input-group button { border-radius: 8px; }
    .tracking-display { font-size: 1.1rem; }
}
