/* =======================================
   🌟 MASTER CSS - PROFESSIONAL & FORMAL UI
   (Navbar, Footer, Login, Signup, Forgot Pass, Contact, Complaint, Privacy)
   ======================================= */

/* 1. GLOBAL SETTINGS & RESETS */
- {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { 
    zoom: 0.9; /* Slightly increased zoom for better readability */
}

body {
    font-family: 'Inter', sans-serif !important; /* Changed to Inter for a more formal look */
    /* background-image: url('../Images/bg.jpg'); Removed background image */
    background-color: #f1f5f9 !important; /* Clean corporate background */
    color: #1e293b; /* Dark slate text */
    margin: 0;
    padding-top: 100px; /* Adjusted padding */
    padding-bottom: 80px; 
    min-height: 100vh; 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* =======================================
   2. NAVBAR & FOOTER (FORMAL THEME)
   ======================================= */
.cyber-navbar { 
    background: #ffffff !important; /* White navbar */
    border-bottom: 1px solid #e2e8f0 !important; /* Subtle border */
    padding: 12px 0 !important; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important; /* Soft shadow */
}
.brand-icon-box { 
    background: #f8fafc; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    width: 36px; height: 36px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: none; 
    font-size: 1.1rem; 
    color: #1e40af; /* Navy blue icon */
}
.portal-text { 
    font-size: 1.25rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.2px; 
    color: #0f172a; 
    margin-left: 8px; 
}
.brand-tag { 
    background: #eff6ff; 
    border: 1px solid #bfdbfe; 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    color: #1d4ed8; 
    box-shadow: none; 
    margin-left: 8px;
}
.custom-toggler { 
    border: 1px solid #cbd5e1 !important; 
    border-radius: 6px; 
    background: #f8fafc; 
    padding: 4px 8px; 
    transition: all 0.2s ease; 
}
.custom-toggler:hover { background: #f1f5f9; }
.navbar-nav .nav-link-pop { 
    color: #475569 !important; 
    font-weight: 500; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.2px; 
    padding: 8px 16px !important; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    transition: all 0.2s ease; 
}
.navbar-nav .nav-link-pop:hover { 
    color: #1e40af !important; 
    background: #f8fafc; 
    border-color: #e2e8f0; 
    box-shadow: none; 
    transform: none; 
}
/* Subdued link hover colors */
.link-home:hover { color: #1e40af !important; } 
.link-create:hover { color: #15803d !important; } 
.link-forgot:hover { color: #b45309 !important; } 
.link-contact:hover { color: #0369a1 !important; } 
.link-support:hover { color: #6d28d9 !important; } 

.footer-cyber { 
    position: fixed; 
    bottom: 0; left: 0; 
    width: 100%; 
    background: #ffffff; 
    color: #64748b; 
    font-size: 12px; 
    font-weight: 500; 
    text-align: center; 
    padding: 12px 20px; 
    border-top: 1px solid #e2e8f0; 
    z-index: 100; 
    text-transform: none; 
    letter-spacing: 0.5px; 
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05); 
}
.footer-year { color: #475569; font-weight: 600; } 
.footer-rj { color: #1e40af; font-weight: 600; }

/* =======================================
   3. COMMON FORM ELEMENTS & ALERTS
   ======================================= */
.form-label { font-size: 0.85rem; font-weight: 600; color: #334155; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.3px; }
.form-control, .form-select { 
    background: #ffffff; 
    border: 1px solid #cbd5e1; 
    color: #1e293b; 
    border-radius: 6px; 
    padding: 10px 14px; 
    font-size: 0.95rem; 
    font-weight: 500; 
    transition: all 0.2s ease; 
    box-shadow: none; 
}
.form-control:focus, .form-select:focus { 
    background: #ffffff; 
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
    color: #1e293b; 
    outline: none; 
}
.form-control[readonly], .form-control:disabled { background: #f8fafc; color: #64748b; cursor: not-allowed; border-color: #e2e8f0; }
.form-control::placeholder { color: #94a3b8; font-weight: 400; }
.letter-spacing-2 { letter-spacing: 1px; font-weight: 600; }
.otp-input { letter-spacing: 6px; text-align: center; font-size: 1.2rem; font-weight: 700; }

.alert { 
    text-align: left; 
    font-size: 14px; 
    font-weight: 500; 
    border: 1px solid transparent; 
    border-radius: 6px; 
    padding: 12px 16px; 
    margin-bottom: 20px; 
    box-shadow: none; 
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; } 
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; } 
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; } 
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* BUTTONS */
.btn-primary { 
    background: #1e40af; 
    color: #ffffff; 
    border: 1px solid #1e3a8a; 
    border-radius: 6px; 
    padding: 10px 16px; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    font-size: 0.95rem; 
    text-transform: none; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
    transition: all 0.2s ease; 
}
.btn-primary:hover:not(:disabled) { 
    background: #1e3a8a; 
    transform: none; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
    color: #ffffff; 
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn-primary:disabled { background: #94a3b8; box-shadow: none; transform: none; cursor: not-allowed; border-color: #94a3b8; }

.btn-warning { 
    background: #f59e0b; 
    color: #ffffff; 
    border: 1px solid #d97706; 
    border-radius: 6px; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    font-size: 0.95rem; 
    text-transform: none; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
    transition: all 0.2s ease; 
    padding: 10px 16px;
}
.btn-warning:hover { background: #d97706; transform: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); color: #ffffff; }
.btn-warning:active { transform: translateY(1px); box-shadow: none; }

.btn-pop { 
    width: 100%; 
    background: #ffffff; 
    color: #1e40af; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    padding: 10px 16px; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    font-size: 0.95rem; 
    text-transform: none; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.02); 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: inline-block; 
    text-decoration: none; 
    text-align: center; 
    margin-top: 15px;
}
.btn-pop:hover { background: #f8fafc; border-color: #94a3b8; transform: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); color: #1e3a8a; }
.btn-pop:active { transform: translateY(1px); box-shadow: none; }

.input-group .btn, .input-group .btn-outline-light { 
    border: 1px solid #cbd5e1; 
    border-left: none; 
    border-radius: 0 6px 6px 0; 
    font-weight: 600; 
    text-transform: none; 
    padding: 0 16px; 
    transition: all 0.2s; 
    color: #475569; 
    background: #f8fafc;
}
.input-group .btn-outline-light:hover { background: #e2e8f0; color: #1e293b; }
#sendMobileOtpBtn, .btn-send-otp { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; border-left: 1px solid #bfdbfe; border-radius: 6px; margin-left: 8px;} 
#sendMobileOtpBtn:hover, .btn-send-otp:hover { background: #dbeafe; color: #1e3a8a; }
.btn-track { background: #f0fdf4; color: #166534; border-color: #bbf7d0; border-left: 1px solid #bbf7d0; border-radius: 6px; margin-left: 8px;} 
.btn-track:hover { background: #dcfce7; color: #14532d; }

/* =======================================
   4. LOGIN PAGE SPECIFIC STYLES
   ======================================= */
.main-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px 30px; 
    box-sizing: border-box; 
}
.services-section { flex: 1; width: 100%; padding: 10px; }
.section-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #0f172a; 
    text-transform: none; 
    letter-spacing: 0px; 
    margin-bottom: 24px; 
    position: relative; 
    display: inline-block; 
}
.section-title::after { display: none; } /* Removed the green skew line */

.service-card { 
    background: #ffffff; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
    color: #1e293b; 
    transition: all 0.2s ease-in-out; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    height: 100%; 
    overflow: hidden; 
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border-color: #cbd5e1; }
.service-header { 
    padding: 14px 16px; 
    font-weight: 600; 
    color: #1e293b; 
    font-size: 1.05rem; 
    border-bottom: 1px solid #e2e8f0; 
    text-transform: none; 
    letter-spacing: 0px; 
    background: #f8fafc;
}
/* Removed colorful headers, using uniform clean look */
.header-samagra, .header-voter, .header-download, .header-recovery { background: #f8fafc; color: #1e293b; }
.service-header i { color: #1e40af; } /* Uniform icon color */

.service-body { padding: 16px; background: #ffffff; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card ul li { 
    padding: 6px 0; 
    position: relative; 
    padding-left: 20px; 
    font-size: 0.9rem; 
    font-weight: 500; 
    border-bottom: 1px solid #f1f5f9; 
    color: #475569;
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before { 
    content: "•"; /* Changed arrow to bullet */
    position: absolute; 
    left: 4px; 
    font-size: 16px; 
    top: 4px; 
    color: #94a3b8; 
}

.auth-card { 
    flex: none; 
    width: 400px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 30px 25px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
    position: sticky; 
    top: 110px; 
}
.captcha-box { display: flex; align-items: center; gap: 12px; }
.captcha-img { 
    width: 120px; 
    height: 42px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid #cbd5e1; 
    background: #ffffff; 
    box-shadow: none; 
}
.captcha-input { background-color: #ffffff !important; font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; text-align: center; }

.btn-create { 
    background: #ffffff; 
    color: #1e40af; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    padding: 10px; 
    font-weight: 600; 
    text-transform: none; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.02); 
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.2s ease; 
}
.btn-create:hover { background: #f8fafc; border-color: #94a3b8; transform: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); color: #1e3a8a; }
.btn-create:active { transform: translateY(1px); box-shadow: none; }

/* REMOVED PANDA AVATAR STYLES */
.auth-header-icon {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}
.auth-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* =======================================
   5. SIGNUP PAGE SPECIFIC STYLES
   ======================================= */
.signup-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; padding: 20px 15px; min-height: calc(100vh - 180px); }
.signup-box { 
    width: 100%; 
    max-width: 500px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 35px 30px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
}
.signup-box h3 { text-align: center; font-weight: 700; font-size: 1.5rem; color: #0f172a; text-transform: none; margin-bottom: 20px; }
.details-card { 
    background: #f8fafc; 
    border-radius: 6px; 
    border: 1px solid #e2e8f0; 
    margin-top: 15px; 
    padding: 16px; 
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02); 
}
.detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label { color: #64748b !important; font-weight: 500; }
.detail-value { color: #1e293b !important; font-weight: 600; }
.footer-text { text-align: center; margin-top: 20px; font-size: 14px; color: #475569; font-weight: 500;}
.footer-text a { color: #1e40af; text-decoration: none; font-weight: 600; text-transform: none; border-bottom: 1px solid transparent; transition: border-color 0.2s;}
.footer-text a:hover { border-bottom-color: #1e40af; }

/* =======================================
   6. FORGOT PASSWORD SPECIFIC STYLES
   ======================================= */
.forgot-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; padding: 0 20px; min-height: calc(100vh - 180px); }
.forgot-box { 
    width: 100%; 
    max-width: 450px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 40px 30px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
    text-align: center; 
}
.forgot-box h2 { font-weight: 700; color: #0f172a; text-transform: none; margin-bottom: 10px; font-size: 1.6rem; }
.forgot-box p { color: #475569; font-size: 14px; font-weight: 500; margin-bottom: 25px; text-transform: none;}
.back-link { 
    color: #1e40af; 
    text-decoration: none; 
    font-weight: 500; 
    text-transform: none; 
    display: inline-block; 
    margin-top: 20px; 
    font-size: 0.95rem; 
    transition: color 0.2s;
}
.back-link:hover { color: #1e3a8a; text-decoration: underline; }

/* =======================================
   7. CONTACT US PAGE SPECIFIC STYLES
   ======================================= */
.contact-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; padding: 0 15px; min-height: calc(100vh - 180px); }
.contact-box { 
    width: 100%; 
    max-width: 450px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 35px 25px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
    text-align: center; 
    animation: fadeIn 0.4s ease-in-out; 
}
.contact-box h2 { font-weight: 700; color: #0f172a; text-transform: none; margin-bottom: 8px; font-size: 1.6rem; }
.desc-text { color: #64748b; font-size: 14px; font-weight: 500; margin-bottom: 25px; text-transform: none; text-align: center;}
.info-row { 
    display: flex; 
    align-items: center; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 12px 16px; 
    margin-bottom: 12px; 
    box-shadow: none; 
    text-align: left; 
    transition: background-color 0.2s ease; 
    cursor: default;
}
.info-row:hover { transform: none; box-shadow: none; background: #f1f5f9; }
.info-icon { 
    background: #eff6ff; 
    border: 1px solid #bfdbfe; 
    border-radius: 6px; 
    width: 40px; height: 40px; 
    display: flex; justify-content: center; align-items: center; 
    font-size: 1.2rem; 
    margin-right: 15px; 
    flex-shrink: 0; 
    box-shadow: none; 
    color: #1e40af;
}
/* Removed distinct colors for icons, keeping them uniform */
.info-row:nth-child(2) .info-icon, .info-row:nth-child(3) .info-icon { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; } 
.info-text { display: flex; flex-direction: column; }
.info-text strong { font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; font-weight: 600; }
.info-text a, .info-text span { color: #1e293b; font-weight: 500; text-decoration: none; font-size: 1rem; }
.info-text a:hover { text-decoration: underline; color: #1e40af; }

/* =======================================
   8. COMPLAINT & SUPPORT SPECIFIC STYLES
   ======================================= */
.support-wrapper { display: flex; justify-content: center; width: 100%; flex: 1; padding: 40px 15px; }
.support-box { 
    width: 100%; 
    max-width: 800px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 35px 30px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
    margin: auto; 
    animation: fadeIn 0.4s ease-in-out; 
}
.support-box h2 { font-weight: 700; color: #0f172a; text-transform: none; text-align: left; margin-bottom: 8px; font-size: 1.6rem; }
.dashed-hr { border-top: 1px solid #e2e8f0; opacity: 1; margin: 25px 0; }
.track-heading { font-weight: 600; text-transform: none; color: #1e293b; text-align: left; margin-bottom: 12px; font-size: 1.2rem;}
.table-responsive { border: 1px solid #e2e8f0; border-radius: 6px; overflow: auto; box-shadow: none; background: #ffffff; }
.table { margin-bottom: 0; width: 100%;}
.table th { background: #f8fafc; color: #475569; text-transform: uppercase; font-weight: 600; border: 1px solid #e2e8f0; padding: 10px 14px; font-size: 0.8rem; letter-spacing: 0.5px;}
.table td { border: 1px solid #e2e8f0; font-weight: 500; vertical-align: middle; color: #1e293b; padding: 10px 14px; font-size: 0.9rem;}
.badge { border: none; font-weight: 500; text-transform: none; padding: 4px 8px; box-shadow: none; color: #ffffff !important; border-radius: 4px; font-size: 0.75rem;}
.bg-warning { background: #f59e0b !important; color: #ffffff !important;} 
.bg-success { background: #10b981 !important; } 
.bg-info { background: #3b82f6 !important; }

/* =======================================
   9. GENERIC TEXT PAGES (Privacy, Terms)
   ======================================= */
.page-wrapper { display: flex; justify-content: center; width: 100%; flex: 1; padding: 40px 15px; }
.page-box { 
    width: 100%; 
    max-width: 800px; 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 40px 45px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); 
    margin: auto; 
    animation: fadeIn 0.4s ease-in-out; 
}
.page-title { 
    font-weight: 700; 
    color: #0f172a; 
    text-transform: none; 
    text-align: left; 
    font-size: 2rem; 
    margin-bottom: 8px; 
    border-bottom: none; 
    display: block; 
    padding-bottom: 0; 
}
.page-content { text-align: left; margin-top: 25px; }
.page-content h2 { font-weight: 600; font-size: 1.25rem; color: #1e293b; text-transform: none; margin-top: 25px; margin-bottom: 10px; }
.page-content p { font-size: 0.95rem; font-weight: 400; color: #475569; line-height: 1.6; margin-bottom: 15px; }
.page-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.page-content ul li { font-size: 0.95rem; font-weight: 400; color: #475569; padding: 6px 0 6px 20px; position: relative; border-bottom: 1px solid #f1f5f9; }
.page-content ul li:last-child { border-bottom: none; }
.page-content ul li::before { content: "•"; position: absolute; left: 4px; top: 6px; color: #94a3b8; font-size: 14px; }
.contact-highlight { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    padding: 16px; 
    margin-top: 25px; 
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02); 
}
.contact-highlight p { margin: 0; font-size: 0.95rem; color: #475569; }
.contact-highlight a { color: #1e40af; text-decoration: none; font-weight: 500; }
.contact-highlight a:hover { text-decoration: underline; }

/* =======================================
   10. RESPONSIVE QUERIES (Mobile View)
   ======================================= */
@media (max-width: 1200px) {
    .main-wrapper { flex-direction: column-reverse; align-items: center; gap: 30px; padding: 20px; }
    .services-section { width: 100%; padding: 0; }
    .auth-card { width: 100%; max-width: 400px; position: relative; top: 0; }
}

@media (max-width: 576px) {
    body { padding-top: 80px; padding-bottom: 80px; }
    .signup-box, .forgot-box, .contact-box, .support-box, .page-box { 
        padding: 24px 20px; 
        border-radius: 8px; 
        border-width: 1px; 
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
        max-width: 100%; 
    }
    .signup-box h3, .forgot-box h2, .contact-box h2, .support-box h2 { font-size: 1.3rem; }
    .page-title { font-size: 1.5rem; }
    .forgot-box p, .desc-text { font-size: 13px; margin-bottom: 20px; }
    .form-control, .form-select { font-size: 0.9rem; padding: 8px 12px; }
    .btn-primary, .btn-warning, .btn-pop { font-size: 0.9rem; padding: 10px; }
    .form-label { font-size: 0.8rem; }
    .input-group .btn, .input-group .btn-outline-light { padding: 0 12px; font-size: 0.85rem; }
    .info-row { padding: 10px; margin-bottom: 10px; border-width: 1px; box-shadow: none; }
    .info-row:hover { transform: none; box-shadow: none; }
    .info-icon { width: 36px; height: 36px; font-size: 1rem; margin-right: 12px;}
    .info-text a, .info-text span { font-size: 0.9rem; }
    .info-text strong { font-size: 0.7rem; }
    .page-content h2 { font-size: 1.1rem; }
    .page-content p, .page-content ul li { font-size: 0.9rem; }
}