/* ===== VPC Portal - Main Stylesheet ===== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --info: #118ab2;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; color: #333; }

/* ===== ADMIN/OPERATOR PANEL ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card h2 { text-align: center; margin-bottom: 8px; color: var(--dark); }
.login-card p { text-align: center; color: var(--gray); margin-bottom: 30px; }
.login-card .logo-icon { text-align: center; font-size: 48px; margin-bottom: 15px; color: var(--primary); }

/* Sidebar */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
    z-index: 1000;
    transition: transform 0.3s;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h4 { font-size: 18px; margin-top: 5px; }
.sidebar-header img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.sidebar-nav { padding: 15px 0; }
.sidebar-nav a {
    display: flex; align-items: center; padding: 12px 20px;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: all 0.3s; font-size: 14px; gap: 12px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff; background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--primary);
}
.sidebar-nav a i { font-size: 18px; width: 24px; text-align: center; }
.sidebar-nav .nav-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 10px 20px; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s;
}
.top-bar {
    background: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 999;
}
.top-bar .toggle-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--dark); }
.top-bar h5 { font-size: 18px; color: var(--dark); }
.content-area { padding: 25px; }

/* Cards */
.stat-card {
    background: #fff; border-radius: 12px; padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon {
    width: 55px; height: 55px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 15px;
}
.stat-card h3 { font-size: 28px; font-weight: 700; }
.stat-card p { color: var(--gray); font-size: 14px; margin-top: 5px; }
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), #6c63ff); }
.bg-gradient-success { background: linear-gradient(135deg, var(--success), #00b09b); }
.bg-gradient-info { background: linear-gradient(135deg, var(--info), #667eea); }
.bg-gradient-warning { background: linear-gradient(135deg, var(--warning), #f093fb); }
.bg-gradient-danger { background: linear-gradient(135deg, var(--danger), #ee0979); }
.bg-gradient-secondary { background: linear-gradient(135deg, var(--secondary), #e040fb); }

/* Content Card */
.content-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}
.content-card .card-header-custom {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex; align-items: center; justify-content: space-between;
}
.content-card .card-header-custom h5 { font-size: 16px; font-weight: 600; }
.content-card .card-body-custom { padding: 25px; }

/* Steps wizard */
.step-wizard { display: flex; justify-content: center; margin-bottom: 30px; }
.step-wizard .step {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px;
    color: var(--gray); font-size: 14px; position: relative;
}
.step-wizard .step .step-num {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e9ecef; font-weight: 600; font-size: 14px;
}
.step-wizard .step.active .step-num { background: var(--primary); color: #fff; }
.step-wizard .step.completed .step-num { background: var(--success); color: #fff; }
.step-wizard .step.active { color: var(--primary); font-weight: 600; }
.step-wizard .step-line { width: 60px; height: 2px; background: #e9ecef; align-self: center; }
.step-wizard .step-line.active { background: var(--primary); }

/* Form builder row */
.field-row {
    background: #f8f9fa; border-radius: 8px; padding: 15px;
    margin-bottom: 10px; border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.field-row:hover { border-color: var(--primary); }
.field-row .btn-remove-field { color: var(--danger); cursor: pointer; font-size: 18px; }
.field-row.locked { background: #e8f4fd; border-color: var(--info); }

/* DataTables custom */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6; border-radius: 8px;
    padding: 6px 12px; outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,0.15); }
table.dataTable { border-collapse: collapse !important; }
table.dataTable thead th { background: #f8f9fa; border-bottom: 2px solid #dee2e6; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
table.dataTable tbody td { vertical-align: middle; font-size: 14px; }

/* Status badges */
.badge-status { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-unviewed { background: #e9ecef; color: #495057; }
.badge-viewed { background: #cff4fc; color: #055160; }
.badge-accepted { background: #d1e7dd; color: #0f5132; }
.badge-rejected { background: #f8d7da; color: #842029; }
.badge-unqualified { background: #fff3cd; color: #664d03; }
.badge-qualified { background: #d0f0c0; color: #2e7d32; }

/* ===== FRONTEND WEBSITE ===== */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.navbar-custom .navbar-brand { font-weight: 700; color: var(--primary) !important; font-size: 22px; }
.navbar-custom .navbar-brand img { height: 40px; margin-right: 10px; }
.navbar-custom .nav-link { color: #333 !important; font-weight: 500; padding: 8px 16px !important; transition: color 0.3s; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { color: var(--primary) !important; }

/* Hero Slider */
.hero-slider .carousel-item { height: 500px; background-size: cover; background-position: center; position: relative; }
.hero-slider .carousel-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.6), transparent); }
.hero-slider .carousel-caption { text-align: left; left: 10%; right: 40%; bottom: 30%; }
.hero-slider .carousel-caption h2 { font-size: 42px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }

/* Section styles */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--dark); position: relative; display: inline-block; }
.section-title h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 50px; height: 3px;
    background: var(--primary); border-radius: 2px;
}
.section-title p { color: var(--gray); margin-top: 15px; }

/* Application cards */
.app-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s; height: 100%;
}
.app-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.app-card .app-img { height: 200px; object-fit: cover; width: 100%; }
.app-card .app-body { padding: 20px; }
.app-card .app-body h5 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.app-card .app-body .dates { font-size: 13px; color: var(--gray); }
.app-card .app-body .dates i { color: var(--primary); margin-right: 5px; }
.btn-apply {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 10px 25px; border-radius: 8px; text-decoration: none;
    font-weight: 600; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-apply:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* Footer */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}
.footer h5 { color: #fff; font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--primary); }
.footer .footer-links li { margin-bottom: 10px; }
.footer .footer-links li a i { margin-right: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; }

/* Social Media Icons */
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.social-icon {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff; font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
}
.social-icon:hover {
    background: var(--social-color, var(--primary));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: transparent;
}

/* Thank you page */
.thankyou-card {
    background: #fff; border-radius: 16px; padding: 50px;
    text-align: center; max-width: 600px; margin: 50px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.thankyou-card .check-icon { font-size: 64px; color: var(--success); margin-bottom: 20px; }
.thankyou-card h2 { margin-bottom: 15px; }
.thankyou-card .app-no { font-size: 24px; font-weight: 700; color: var(--primary); background: #f0f2f5; padding: 15px 30px; border-radius: 10px; display: inline-block; margin: 15px 0; }

/* Status check page */
.status-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.status-timeline { position: relative; padding-left: 30px; }
.status-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #e9ecef; }
.status-info-box { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-top: 20px; }
.status-info-box h6 { color: var(--primary); margin-bottom: 5px; }

/* Donate page */
.donate-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

/* ===== TAGLINE SECTION ===== */
.tagline-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-bottom: 1px solid #e3e8f8;
}
.tagline-logo {
    height: 80px; width: 80px;
    object-fit: contain;
    margin-right: 20px;
    filter: drop-shadow(0 4px 10px rgba(67,97,238,0.2));
}
.tagline-text {
    font-size: 26px; font-weight: 600; line-height: 1.5;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ACHIEVEMENT COUNTERS ===== */
.counters-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
}
.counters-section .section-title h2 { color: #fff; }
.counters-section .section-title h2::after { background: var(--warning); }
.counter-card {
    text-align: center; padding: 30px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.counter-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.counter-icon {
    font-size: 36px; color: var(--warning);
    margin-bottom: 15px;
    width: 70px; height: 70px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,209,102,0.1);
}
.counter-number { font-size: 36px; font-weight: 800; margin-bottom: 5px; color: #fff; }
.counter-label { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

/* ===== FEATURE CARDS (GIF + TEXT) ===== */
.feature-card {
    background: #fff; border-radius: 16px; padding: 30px;
    text-align: center; height: 100%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,0.12); border-color: var(--primary); }
.feature-img-wrap {
    width: 90px; height: 90px; margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2ff, #e8f4fd);
    display: flex; align-items: center; justify-content: center;
}
.feature-img-wrap img { width: 60px; height: 60px; object-fit: contain; }
.feature-card h5 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.6; margin: 0; }

/* ===== PARTNER LOGOS MARQUEE ===== */
.partners-section { padding: 60px 0; background: #f8f9fa; overflow: hidden; }
.marquee-wrapper { overflow: hidden; width: 100%; margin-top: 10px; }
.marquee-track {
    display: flex; gap: 60px;
    animation: marqueeScroll 35s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-decoration: none; color: var(--gray);
    min-width: 180px; padding: 20px 30px;
    background: #fff; border-radius: 14px;
    border: 1px solid #eee;
    transition: all 0.3s;
}
.marquee-item:hover {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 5px 20px rgba(67,97,238,0.12);
    transform: translateY(-3px);
}
.marquee-item img { height: 70px; max-width: 140px; object-fit: contain; }
.marquee-item span { font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .top-bar .toggle-btn { display: block; }
    .hero-slider .carousel-item { height: 350px; }
    .hero-slider .carousel-caption { left: 5%; right: 5%; }
    .hero-slider .carousel-caption h2 { font-size: 28px; }
    .tagline-text { font-size: 20px; }
    .tagline-logo { height: 60px; width: 60px; }
    .counter-number { font-size: 28px; }
    .marquee-track { gap: 40px; }
}
@media (max-width: 576px) {
    .login-card { margin: 20px; padding: 30px 20px; }
    .step-wizard { flex-wrap: wrap; gap: 5px; }
    .step-wizard .step-line { width: 30px; }
    .content-area { padding: 15px; }
    .tagline-section { padding: 30px 0; text-align: center; }
    .tagline-text { font-size: 18px; }
    .tagline-logo { margin: 0 auto 15px; display: block; }
    .counter-card { padding: 20px 10px; }
    .counter-number { font-size: 24px; }
    .counter-icon { font-size: 28px; width: 55px; height: 55px; }
    .marquee-item { min-width: 140px; padding: 15px 20px; }
    .marquee-item img { height: 50px; max-width: 100px; }
}
