﻿/* Static CSS for MasterPage */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.content_wrapper {
    width: 100%;
    box-sizing: border-box;
    min-height: 300px;
}

.general-wrapper {
    background-color: White;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer {
    bottom: 0;
    width: 100%;
    background-color: black;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.footer-notes p {
    margin: 0;
    font-size: 14px;
    color: white;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    min-height: 50px;
    width: 100%;
    position: relative;
    padding: 5px;
    box-sizing: border-box;
}
/* Logo and info wrapper */
.logo-info {
    display: flex;
    align-items: center;
}

.school-logo {
    width: 180px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
    /* Hover effect for logo */
    .school-logo:hover {
        transform: scale(1.1);
    }

.school-info {
    text-align: left;
}

/* School name styling */
.school-name {
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
}
/* School details (Affiliation and UDISE) */
.school-details {
    opacity: 0.9;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
}

.form-container {
    max-width: 100%;
    width: 95%;
    margin: auto;
    padding: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
}
    /* Form inputs */
    .form-container input[type="text"],
    .form-container input[type="password"],
    .form-container textarea,
    .form-container select {
        width: 100%;
        max-width: 250px;
        padding: 4px;
        border: 1px solid rgb(123, 157, 228);
        border-radius: 4px;
        font-weight: bold;
        color: rgb(3, 51, 85);
        font-family: Arial, Tahoma, Verdana;
        font-size: 12px;
        vertical-align: middle;
        background: linear-gradient(to bottom, rgb(240, 238, 239), rgb(255, 255, 255));
    }

        .form-container input:focus,
        .form-container textarea:focus {
            border-color: #ccc;
            background-color: #f9f9f9;
        }

    .form-container .label-120 {
        font-weight: bold;
        BaseColor: rgb(3, 51, 85);
        font-family: Arial, Tahoma, Verdana;
        font-size: 12px;
        display: inline-block;
        width: 120px;
        text-align: right;
        vertical-align: middle;
        margin-bottom: 6px;
        margin-top: 6px;
        margin-right: 10px;
    }

    .form-container .label-150 {
        font-weight: bold;
        BaseColor: rgb(3, 51, 85);
        font-family: Arial, Tahoma, Verdana;
        font-size: 12px;
        display: inline-block;
        width: 150px;
        text-align: right;
        vertical-align: middle;
        margin-bottom: 6px;
        margin-top: 6px;
        margin-right: 10px;
    }

    .form-container .label-180 {
        font-weight: bold;
        BaseColor: rgb(3, 51, 85);
        font-family: Arial, Tahoma, Verdana;
        font-size: 12px;
        display: inline-block;
        width: 180px;
        text-align: right;
        vertical-align: middle;
        margin-bottom: 6px;
        margin-top: 0px;
        margin-right: 10px;
    }

    .form-container .label-80 {
        font-weight: bold;
        BaseColor: rgb(3, 51, 85);
        font-family: Arial, Tahoma, Verdana;
        font-size: 12px;
        display: inline-block;
        width: 80px;
        text-align: right;
        vertical-align: middle;
        margin-bottom: 6px;
        margin-top: 6px;
        margin-right: 10px;
    }

/* Parents login button */
.login-btn {
    background-color: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    /* Hover effect for button */
    .login-btn:hover {
        background-color: #e55a50;
        transform: translateY(-2px);
    }

.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between each social icon */
}

.utility-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-left {
    display: flex;
    flex-direction: column;
    max-width: 50%;
}

.header-right {
    display: flex;
    float: right;
    max-width: 50%;
    padding: 5px;
}


.phone-info {
    margin-top: 2px;
}

.menu-panel {
    width: 100%;
    box-sizing: border-box;
}

.desktop-menu {
    display: block;
}

.mobile-menu-trigger {
    display: none;
    width: 40px;
    height: 40px;
    background: #CC3300;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    border-radius: 4px;
    line-height: 36px;
    text-align: center;
    margin-bottom: 10px;
}

/* Updated mobile-nav CSS with proper active states */
div.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -280px; /* Start off-screen */
    width: 280px;
    height: 100vh;
    z-index: 1001;
    background: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
}

    div.mobile-nav.active {
        left: 0 !important; /* Slide in */
        display: block !important;
    }

div.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

    div.mobile-nav-overlay.active {
        display: block !important;
    }

.mobile-menu-list {
    padding: 10px !important;
    list-style: none !important; /* Remove bullet points */
}

    .mobile-menu-list ul {
        list-style: none !important; /* Remove bullet points for nested ul */
        padding-left: 15px !important;
    }

    .mobile-menu-list li {
        margin-bottom: 10px !important;
        list-style: none !important; /* Ensure no bullet points */
    }

        .mobile-menu-list li a {
            display: block !important;
            padding: 10px !important;
            text-decoration: none !important;
            color: #000000 !important;
        }

.marquee-container {
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping */
    width: 100%; /* Full width to avoid wrapping */
}

.marquee-text {
    display: inline-block;
    animation: scroll 20s linear infinite;
    white-space: nowrap; /* Reinforce no wrapping */
    max-width: 100%; /* Prevent overflow */
}


@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-text:hover {
    animation-play-state: paused;
}


/* Responsive design for tablets and smaller screens */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-left, .header-right {
        max-width: 100%;
    }

    .logo-info {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .school-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
    }

    .school-name {
        font-size: 1.5rem;
    }

    .school-details {
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-trigger {
        display: block !important;
    }

    .marquee-container {
        width: 100vw; /* Full viewport width */
        margin: 0; /* Remove any margins */
    }

    .marquee-text {
        font-size: 0.85rem; /* Slightly smaller to avoid wrapping */
        padding: 0 5px;
        animation-duration: 15s;
        line-height: 1.2; /* Tighten line height */
    }

    .general-wrapper {
        background-color: White;
        margin: 0 auto;
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Responsive design for mobile devices */
@media (max-width: 480px) {


    .school-logo {
        width: 50px;
    }

    .school-name {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem); /* Smaller font size for smaller screens */
        line-height: 1.2;
        max-width: 85vw; /* Slightly tighter for smaller screens */
    }

    .school-details {
        font-size: 0.8rem;
    }

    .login-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .form-label {
        font-weight: bold;
    }

    .form-section {
        background-color: #ffffff;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        margin: 0 auto;
        max-width: 600px;
    }

    .center {
        text-align: center;
        margin-top: 20px;
    }

    .btnLogin {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
    }

    .forgot-password {
        font-size: 0.9rem;
        color: brown;
    }

    #forgot-pw {
        position: relative;
        display: none;
        cursor: pointer;
    }

        #forgot-pw .tooltip-box {
            position: absolute;
            top: -82px;
            right: 7px;
            border: 1px solid #F7941C;
            background: #FEEFDA;
            padding: 5px;
            width: 180px;
            color: #000;
            font-size: 12px;
            text-align: left;
        }

        #forgot-pw img {
            position: absolute;
            top: 5px;
            right: -13px;
        }
    .btnSave {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
    }
  
}
