﻿/* ==========================================================================
   GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* Optimized paragraph text footprint */
    font-weight: 400; /* Recommended core body text weight */
    line-height: 1.6;
    color: #333333;
    background-color: #F3F6FA; /* Soft grey section backdrop */
    text-align: left;
    scroll-behavior: smooth;
    cursor: default;
    transition: background-color 0.3s ease-in-out;
}

/* Constrained paragraph content to optimize reading lines */
p {
    max-width: 75ch;
    font-size: 16px;
    font-weight: 400;
}

/* Headings Structural Weights & Color Specs */
h1, h2, h3, h4, h5, h6 {
    color: #12345A; /* Deep Navy */
    font-weight: 700; /* Explicit bold heading configuration */
    text-transform: none; /* Avoid all-caps blocks */
}

/* ==========================================================================
   MASTER STRUCTURE & CONTAINER FLEX
   ========================================================================== */
.master-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-area {
    flex: 1 0 auto;
    width: 100%;
    background-color: #F3F6FA;
}

/* ==========================================================================
   HEADER COMPONENT RULES
   ========================================================================== */
.header-bar {
    background-color: #12345A; /* Primary Deep Navy Canvas */
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #FFFFFF;
}

.header-container {
    display: flex;
    flex-wrap: wrap; /* Enforces clean stacking layouts on smaller interfaces */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.swachh-logo {
    width: 130px;
    height: auto;
    object-fit: contain;
}

.header-title-block {
    text-align: center;
    flex: 1;
    min-width: 280px;
    padding: 10px;
}

    .header-title-block h1 {
        font-size: 38px; /* Recommended homepage scaling index */
        color: #FFFFFF;
        text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
        margin: 0 0 10px 0;
    }

@media (max-width: 768px) {
    .header-title-block h1 {
        font-size: 28px; /* Dynamic adaptation layer for mobile bounds */
    }
}

/* ==========================================================================
   INTERACTIVE NAVIGATION LINK PANELS
   ========================================================================== */
.nav-row-container {
    background-color: #087F8C; /* Secondary Teal Accent Backdrop */
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-links-grid {
    display: flex;
    flex-wrap: wrap; /* Stops horizontal grid overflow on mobile */
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .nav-links-grid td {
        padding: 10px 15px;
        text-align: center;
    }

    .nav-links-grid a,
    .nav-links-grid .asp-link-btn {
        font-size: 15px; /* Confirmed navigation menu structural scale */
        font-weight: 600;
        color: #FFFFFF !important;
        text-decoration: none;
        display: inline-block;
        padding: 8px 16px;
        border-radius: 20px;
        transition: all 0.2s ease-in-out;
    }

        .nav-links-grid a:hover,
        .nav-links-grid .asp-link-btn:hover {
            background-color: #FFFFFF;
            color: #087F8C !important; /* Inverted dynamic highlight token */
            transform: translateY(-1px);
        }

/* ==========================================================================
   COMPLAINT REGISTRATION ACTION BUTTON
   ========================================================================== */
.action-register-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E63946; /* High-contrast validation alert crimson */
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    width: 130px;
    height: 65px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    animation: micro-pulse 2s infinite;
}

    .action-register-btn:hover {
        background-color: #C81D25;
        transform: scale(1.03);
    }

@keyframes micro-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }


}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }
}

/* ==========================================================================
   USER IDENTITY BLOCK & IMAGE WRAPPER
   ========================================================================== */
.user-identity-profile {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 8px;
    color: #12345A;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #087F8C;
    overflow: hidden;
    margin: 0 auto;
    background-color: #F3F6FA;
}

    .profile-avatar-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.user-identity-profile label {
    font-size: 13px; /* Label layout size specification */
    font-weight: 600;
    display: block;
    margin: 2px 0;
}

/* ==========================================================================
   MODERN FORM INPUTS & INTERFACE CONTROLS
   ========================================================================== */
.TxtBox, .TxtBoxGV, .TBSinglLn, .TBMultiLn, .DatBox {
    font-size: 16px !important; /* Unified accessible text size */
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #333333;
    padding: 8px 12px !important;
    border: 1px solid #087F8C !important; /* Secondary Teal Border Line */
    background-color: #FFFFFF !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .TxtBox:focus, .TBSinglLn:focus, .TBMultiLn:focus {
        border-color: #12345A !important;
        box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.25) !important;
        outline: none;
    }

/* Rounded Core Buttons */
.LnkBtnRndBdr {
    display: inline-block;
    background-color: #087F8C !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.1s;
}

    .LnkBtnRndBdr:hover {
        background-color: #12345A !important; /* Changes smoothly to Deep Navy */
        transform: translateY(-1px);
    }

/* ==========================================================================
   CUSTOM PROPRIETARY MODAL ENGINE STYLES
   ========================================================================== */
#modalContainer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 20000;
    background-color: rgba(18, 52, 90, 0.6); /* Translucent Deep Navy Backdrop */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#alertBox {
    position: relative;
    width: 100%;
    max-width: 450px;
    background-color: #FFFFFF; /* Clean white form canvas */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slide-in 0.25s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes slide-in {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#alertBox h1 {
    margin: 0;
    padding: 14px 20px;
    font-size: 18px;
    background-color: #12345A; /* Deep Navy Header Frame */
    color: #FFFFFF;
    text-align: center;
    font-weight: 600;
}

#alertBox p {
    font-size: 15px;
    color: #333333;
    padding: 20px;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

#alertBox #closeBtn {
    display: block;
    width: 100px;
    margin: 0 auto 20px auto;
    padding: 8px 16px;
    background-color: #087F8C; /* Teal button anchor */
    color: #FFFFFF;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

    #alertBox #closeBtn:hover {
        background-color: #12345A;
    }

/* ==========================================================================
   SIDEBAR MENU UTILITIES (ULand User Framework)
   ========================================================================== */
.menu-sidebar-card {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.menu-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #12345A;
    border-bottom: 2px solid #087F8C;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-align: center;
}

/* ==========================================================================
   FOOTER COMPONENT LAYOUT
   ========================================================================== */
.footer-row-container {
    background-color: #A0F4F8; /* Deep Navy Primary Backdrop */
    color: #FFFFFF;
    padding: 10px 10px;
    margin-top: auto; /* Pushes footer tightly to page bottom area */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-layout-grid {
    display: flex;
    flex-wrap: wrap; /* Prevents overflow horizontal grid breaks */
    align-items: center;
    justify-content: space-between;
    max-width: 1900px;
    margin: 0 auto;
    gap: 20px;
}

/* Centralized Footer Links Area */
.footer-navigation-panel {
    background-color: #f1c27d; /* Soft Grey Surface Contrast */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    flex: 1;
    max-width: 1400px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .footer-navigation-panel a {
        color: #087F8C !important; /* Secondary Teal Accent Matrix */
        text-decoration: none;
        font-size: 15px; /* Menu scale standard framework */
        font-weight: 500;
        display: inline-block;
        padding: 4px 10px;
        transition: color 0.2s ease;
    }

        .footer-navigation-panel a:hover {
            color: #12345A !important;
            text-decoration: underline;
        }

.footer-navigation-divider {
    color: #CED4DA;
    display: inline-block;
    padding: 0 4px;
    user-select: none;
}

/* Social Media Channels Panel */
.footer-social-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    min-width: 160px;
}

.social-circle-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #FFFFFF !important;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, opacity 0.2s;
}

    .social-circle-anchor:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

.soc-facebook {
    background-color: #3B5998;
}

.soc-twitter {
    background-color: #1DA1F2;
}

.soc-google {
    background-color: #EA4335;
}

.soc-linkedin {
    background-color: #0077B5;
}

/* ==========================================================================
   TRANSLATION WIDGET & OVERRIDES
   ========================================================================== */
.translate-widget-wrapper {
    position: relative;
    background-color: transparent;
    padding: 5px;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
}

    .goog-te-gadget-simple span {
        color: #FFFFFF !important;
        font-size: 13px !important;
    }

/* ==========================================================================
   RESPONSIVE DATA HANDLING (Anti-Horizontal Overflows)
   ========================================================================== */
.responsive-table-holder {
    width: 100%;
    overflow-x: auto; /* Allows smooth touch swipe scrolling on smaller mobile layouts */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border: 1px solid #CED4DA;
    border-radius: 6px;
    background-color: #FFFFFF;
}

    .responsive-table-holder table {
        width: 100%;
        margin: 0;
        border-collapse: collapse;
    }

/* ==========================================================================
   MOBILE-FIRST MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .header-container,
    .footer-layout-grid {
        flex-direction: column;
        text-align: center;
    }

    .nav-links-grid {
        flex-direction: column;
        width: 100%;
    }

        .nav-links-grid td {
            width: 100%;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-links-grid a {
            width: 90%;
        }

    .footer-navigation-panel {
        width: 100%;
    }

    .footer-navigation-divider {
        display: none; /* Strip dividers for clean stacked block presentation */
    }

    .footer-navigation-panel a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #CED4DA;
    }

    /* ==========================================================================
   BLINKING ANIMATION ENGINE
   ========================================================================== */
    @keyframes blink {
        0%, 100% {
            opacity: 1;
        }

        50% {
            opacity: 0.2;
        }
    }

    .blinking-star-button {
        animation: blink 1.2s infinite;
    } 

    /* ==========================================================================
   GLOBAL MENU SPECIFIC HOVER & ANTI-UNDERLINE RULES
   ========================================================================== */
    /* Targets every form of link inside the homeHeader menu container to wipe default browser traits */
    .homeHeader a,
    .homeHeader a:link,
    .homeHeader a:visited,
    .homeHeader tr td a,
    .nav-item-link {
        color: #FFFFFF !important;
        text-decoration: none !important; /* FORCES UNDERLINES OFF AGGRESSIVELY */
        font-size: 15px !important;
        font-weight: 700 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        display: inline-block;
        width: 90%;
        padding: 7px 0 !important;
        border-radius: 15px;
        border: 1px solid transparent;
        transition: all 0.2s ease-in-out !important;
    }

        /* HIGH-VISIBILITY TEAL HOVER RE-REGISTRATION */
        .homeHeader a:hover,
        .homeHeader tr td a:hover,
        .nav-item-link:hover {
            background-color: #087F8C !important; /* Clear Teal Highlight Frame */
            color: #FFFFFF !important;
            text-decoration: none !important; /* Safety check against hover line injection */
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
            transform: translateY(-1px);
        }

    /* ACTIVE HIGHLIGHT TAB */
    .nav-active-item,
    .homeHeader .nav-active-item {
        background-color: #087F8C !important;
        color: #FFFFFF !important;
        border: 1px solid #FFFFFF !important;
        text-decoration: none !important;
    }

    .nav-item-link i,
    .homeHeader a i {
        color: #FFFFFF !important;
    }

    /* ==========================================================================
   GOOGLE TRANSLATE DROPDOWN TEXT BLACK OVERRIDES
   ========================================================================== */
    /* Forces the main simple widget text to render as high-contrast black */
    #google_translate_element,
    #google_translate_element *,
    .goog-te-gadget-simple,
    .goog-te-gadget-simple span,
    .goog-te-menu-value,
    .goog-te-menu-value span {
        color: #333333 !important; /* Enforces clean black text typography layout */
        font-family: Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: bold !important;
        text-decoration: none !important;
    }

    /* Enhances the background box container of the simple dropdown layout */
    .goog-te-gadget-simple {
        background-color: #FFFFFF !important; /* Crisp white input box container backdrop */
        border: 1px solid #12345A !important; /* Binds with a clean Deep Navy border trace */
        padding: 3px 6px !important;
        border-radius: 4px !important;
        display: inline-block !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Cleans up the small graphic vector arrow down indicator inside the box */
    .goog-te-menu-value img {
        filter: brightness(0) !important; /* Inverts the small arrow asset from white to black */
        margin-left: 4px !important;
        vertical-align: middle !important;
    }

    /* ==========================================================================
   GOOGLE TRANSLATE DYNAMIC TEXT BLACK OVERRIDES
   ========================================================================== */
    /* Targets the exact internal select dropdown element injected by Google scripts */
    select.goog-te-combo,
    .goog-te-combo,
    .goog-te-gadget,
    #google_translate_element select {
        color: #333333 !important; /* Forces the main top text explicitly to Black */
        background-color: #FFFFFF !important; /* Clean White box backdrop background */
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 13px !important;
        font-weight: bold !important;
        padding: 3px 6px !important;
        border: 1px solid #12345A !important; /* Binds with a clean Deep Navy border line */
        border-radius: 4px !important;
    }

    /* Strips any accidental white power text labels injected next to the dropdown */
    .goog-te-gadget {
        color: transparent !important; /* Hides "Powered by Google" text so it doesn't break header styles */
        font-size: 0 !important;
    }

    /* Restores normal spacing for the text options inside the dropdown window */
    .goog-te-combo option {
        color: #333333 !important;
        background-color: #FFFFFF !important;
    }

}
