/* --- GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    background: #f4f6fc;
}

/* --- BLUR WHEN POPUPS ARE ACTIVE --- */
.blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* Prevent POPUPS from being blurred */
.popup,
.login-popup {
    filter: none !important;
    backdrop-filter: none !important;
    z-index: 9999 !important;
}

.popup-box,
.login-box {
    background: #ffffff !important;
    color: #000 !important;
    filter: none !important;
    position: relative;
    z-index: 10000 !important;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #002d72;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header h2 {
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 10px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar-menu a span {
    margin-right: 10px;
}

.sidebar-menu a:hover {
    background: #0050c8;
}

/* --- MAIN CONTENT --- */
.content {
    margin-left: 260px;
    padding: 20px;
    width: calc(100% - 260px);
}

/* --- HEADER --- */
.header h1 {
    font-size: 28px;
    color: #002d72;
    margin-bottom: 20px;
}

/* --- HERO SECTION --- */
.hero {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.hero-text h2 {
    color: #002d72;
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-text p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-btn {
    padding: 12px 25px;
    background: #002d72;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.cta-btn:hover {
    background: #001c4d;
}

/* --- FEATURES SECTION --- */
.features {
    margin-top: 40px;
}

.features h2 {
    font-size: 24px;
    color: #002d72;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #002d72;
    margin-bottom: 10px;
}

/* --- PAYMENT SECTION --- */
.payment-section {
    margin-top: 40px;
}

.payment-section h2 {
    font-size: 24px;
    color: #002d72;
    margin-bottom: 20px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.payment-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.payment-card:hover {
    transform: translateY(-5px);
}

.payment-card h3 {
    color: #002d72;
    margin-bottom: 10px;
}

.payment-card p {
    color: #555;
    margin-bottom: 15px;
}

.pay-btn {
    padding: 10px 18px;
    background: #002d72;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.pay-btn:hover {
    background: #001c4d;
}

/* --- RESPONSIVE PAYMENT GRID --- */
@media (max-width: 850px) {
    .payment-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER --- */
footer {
    margin-top: 40px;
    text-align: center;
    padding: 15px;
    background: #002d72;
    color: white;
    border-radius: 8px;
}

/* --- TOP BAR --- */
.top-bar {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-badge {
    background: #002d72;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.logout-btn {
    margin-left: auto;
    background: #c70000;
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background: #990000;
}

/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25D366;
    color: white;
    font-size: 30px;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* --- POPUPS --- */
.popup,
.login-popup {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.3) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.login-popup { display: none; }

.popup-box,
.login-box {
    width: 350px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.popup-box button,
.login-box button {
    padding: 10px 20px;
    background: #002d72;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

/* --- ANIMATIONS --- */
.fade-in { animation: fadeIn 0.8s ease; }
.slide-left { animation: slideLeft 0.8s ease; }
.slide-up { animation: slideUp 0.8s ease; }
.slide-down { animation: slideDown 0.8s ease; }

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes slideLeft { 
    from { transform: translateX(-40px); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideUp { 
    from { transform: translateY(40px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes slideDown { 
    from { transform: translateY(-40px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}


/* --- LOGIN POPUP FIXED STYLES --- */
.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35) !important;
    display: none; /* stays hidden until triggered */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
    z-index: 9999;
}

.login-box {
    width: 380px;
    background: #ffffff !important;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.5s ease;
    text-align: left;
}

.login-box h2 {
    font-size: 24px;
    color: #002d72;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.login-box label {
    font-size: 15px;
    color: #222;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1.8px solid #c8c8c8;
    background: #f9f9f9;
    font-size: 15px;
    margin-bottom: 18px;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: #002d72;
    background: white;
    outline: none;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #002d72;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.3s ease;
}

.login-box button:hover {
    background: #001c4d;
}

/* Center-line text */
.login-box .note {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}


/* --- CLEAN PROFESSIONAL CHART --- */

.chart-section {
    margin-top: 40px;
}

.chart-title {
    text-align: center;
    color: #002d72;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.chart-card {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}




/* ---- STATISTIC COUNTERS ---- */
.stats-section {
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.stat-card .icon {
    font-size: 40px;
    color: #002d72;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 16px;
    color: #002d72;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-card .counter {
    font-size: 32px;
    font-weight: 700;
    color: #001c4d;
}


/* --- USER PROFILE AT TOP OF SIDEBAR --- */
.user-profile {
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 13px;
    color: #d0d0d0;
    opacity: 0.8;
}




/* RESPONSIVE */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-size: 26px;
    font-weight: bold;
    color: #1e40af;
}

.logome{
    width: 10em;
    height: 10em;
    border-radius: 50%;

}


