/* =========================================
   COMMON.CSS
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:
    linear-gradient(
        to bottom,
        #f4f7fb,
        #eef2ff
    );
    overflow-x:hidden;
    color:#222;
}



/* =========================================
   ROOT COLORS
========================================= */

:root{

    --primary:#24295d;
    --secondary:#3b82f6;
    --danger:#ef4444;
    --success:#22c55e;
    --light:#ffffff;
    --bg:#eef2ff;

}



/* =========================================
   HEADER
========================================= */

#collegeHeader{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 50px;

    background:white;

    box-shadow:
    0 2px 10px rgba(0,0,0,0.08);

    animation:
    fadeDown 0.8s ease;
}

.logo{
    height:90px;
}

.accreditations img{

    height:105px;

    transition:0.3s;
}

.accreditations img:hover{

    transform:scale(1.08);
}



/* =========================
   FOOTER
========================= */

/* 5. FOOTER STYLING */
.main-footer {
    background-color: #24295d; 
    color: #ffffff;
    padding: 50px 0 0 0;
    margin-top: 60px;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px 40px 10px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin: 10px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col p, .footer-col ul {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #d1d5db;
    list-style: none;
}

.footer-col ul li a {
    text-decoration: none;
    color: #d1d5db;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}





.footer-bottom {
    background-color: #000000;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
    width: 100%;
}



/* =========================================
   BUTTONS
========================================= */

button{

    border:none;

    border-radius:12px;

    padding:12px 18px;

    cursor:pointer;

    transition:0.3s;

    font-weight:bold;

    background:
    linear-gradient(
        135deg,
        #24295d,
        #3b82f6
    );

    color:white;
}

button:hover{

    transform:translateY(-2px);

    box-shadow:
    0 6px 15px rgba(0,0,0,0.15);
}



/* =========================================
   INPUTS
========================================= */

input,
select{

    width:100%;

    padding:12px;

    border-radius:10px;

    border:1px solid #ccc;

    outline:none;

    transition:0.3s;
}

input:focus,
select:focus{

    border-color:#3b82f6;

    box-shadow:
    0 0 10px rgba(59,130,246,0.2);
}



/* =========================================
   TOASTS
========================================= */

#toast-container{

    position:fixed;

    top:20px;

    right:20px;

    z-index:99999;
}



.toast{

    min-width:300px;

    background:white;

    padding:18px 22px;

    border-radius:16px;

    margin-bottom:15px;

    color:#222;

    font-weight:600;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);

    animation:
        toastSlide 0.4s ease;

    border-left:6px solid #3b82f6;
}



.toast.success{

    border-left-color:#22c55e;
}



.toast.error{

    border-left-color:#ef4444;
}



.toast.warning{

    border-left-color:#f59e0b;
}



@keyframes toastSlide{

    from{

        opacity:0;

        transform:
        translateX(100px);
    }

    to{

        opacity:1;

        transform:
        translateX(0);
    }

}


/* =========================================
   SHARED TABLES
========================================= */

table{

    width:100%;

    border-collapse:collapse;

    background:white;

    border-radius:16px;

    overflow:hidden;

    box-shadow:
    0 6px 20px rgba(0,0,0,0.08);
}

th{

    background:#24295d;

    color:white;

    padding:15px;

    text-align:center;
}

td{

    padding:14px;

    border-bottom:1px solid #eee;

    text-align:center;
}



/* =========================================
   SHARED CARDS
========================================= */

.card{

    background:white;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 6px 20px rgba(0,0,0,0.08);

    transition:0.3s;
}

.card:hover{

    transform:translateY(-5px);
}



/* =========================================
   MODALS
========================================= */

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:
    rgba(0,0,0,0.5);

    z-index:999;
}



/* =========================================
   FLEX / GRID UTILITIES
========================================= */

.flex{
    display:flex;
}

.grid{
    display:grid;
}

.center{
    display:flex;
    justify-content:center;
    align-items:center;
}



/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-thumb{

    background:#3b82f6;

    border-radius:10px;
}



/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes fadeDown{

    from{
        opacity:0;
        transform:translateY(-30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes slideLeft{

    from{
        opacity:0;
        transform:translateX(100px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}



/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:900px){

    #collegeHeader{

        flex-direction:column;

        gap:20px;
    }

    .footer-container{

        flex-direction:column;
    }
}



/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:1200px){

    .vision-mission-container{

        flex-wrap:wrap;

        justify-content:center;
    }

    .info-box,
    #loginContainer{

        max-width:100%;
    }

}



@media(max-width:768px){

    #collegeHeader{

        flex-direction:column;

        text-align:center;

        gap:20px;

        padding:20px;
    }



    .logo{

        height:70px;
    }



    .accreditations{

        display:flex;

        flex-wrap:wrap;

        justify-content:center;
    }



    .accreditations img{

        height:60px;
    }



    h1{

        font-size:1.5rem;

        padding:0 15px;
    }



    .vision-mission-container{

        width:95%;

        flex-direction:column;

        align-items:center;

        gap:20px;
    }



    .info-box,
    #loginContainer{

        width:100%;

        min-width:unset;
    }



    .button-group{

        flex-direction:column;
    }



    .footer-container{

        flex-direction:column;

        gap:30px;

        text-align:center;
    }



    .map-btn{

        width:100%;
    }

}


/* =========================================
   FLOAT ANIMATION
========================================= */

.float-hover{

    transition:0.3s;
}

.float-hover:hover{

    transform:
    translateY(-6px);

    box-shadow:
    0 10px 25px rgba(0,0,0,0.15);
}



/* =========================================
   BUTTON POP
========================================= */

button:active{

    transform:scale(0.97);
}



/* =========================================
   CARD ANIMATION
========================================= */

.card-animate{

    animation:
    fadeUp 0.8s ease;
}


.user-top-bar{

    background: linear-gradient(
        90deg,
        #1e3c72,
        #2a5298,
        #4a7de8
    );

    color:white;

    padding:15px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

#facultyName{

    font-size:20px;

    font-weight:700;
}

.faculty-meta{

    font-size:13px;

    opacity:.9;
}

.profile-btn{

    border:none;

    background:white;

    color:#1e3c72;

    padding:10px 16px;

    border-radius:8px;

    cursor:pointer;
}


.user-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 30px;

    background:
    linear-gradient(
        90deg,
        #1e3c72,
        #2a5298,
        #4a7de8
    );

    color:white;

    box-shadow:
    0 3px 10px rgba(0,0,0,0.15);
}

.user-left{

    display:flex;

    flex-direction:column;

    gap:5px;
}

#facultyName{

    font-size:20px;

    font-weight:700;
}

.user-meta{

    display:flex;

    gap:20px;

    font-size:14px;
}

.user-right{

    display:flex;

    align-items:center;

    gap:20px;
}

#liveClock{

    font-size:18px;

    font-weight:600;
}

.profile-btn{

    border:none;

    padding:10px 18px;

    border-radius:8px;

    cursor:pointer;

    background:white;

    color:#1e3c72;

    font-weight:600;
}

.user-bar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:14px 25px;

    background:linear-gradient(
        90deg,
        #244a94,
        #4d7ff0
    );

    color:white;
}

.user-right{

    display:flex;
    align-items:center;

    gap:20px;
}

#liveClock{

    font-size:26px;

    font-weight:700;

    min-width:140px;

    text-align:right;
}

.dept-name{

    font-size:20px;

    font-weight:700;

    padding:8px 18px;

    border-radius:25px;

    background:rgba(255,255,255,0.18);

    border:1px solid rgba(255,255,255,0.3);

    backdrop-filter:blur(10px);
}


/* =========================
   PAGE TITLE
========================= */

.page-title{

    text-align:center;

    font-size:52px;

    font-weight:800;

    color:#1f2f7a;

    margin:35px 0 40px;

    letter-spacing:0.5px;

    text-shadow:0 2px 6px rgba(0,0,0,0.08);

}


/* =========================
   SECTION TITLE
========================= */

.section-title{

    font-size:32px;

    font-weight:700;

    color:#1f2f7a;

    margin-bottom:25px;

    display:flex;

    align-items:center;

    gap:12px;

}
.page-title-section{

    text-align:center;

    margin:30px 0 40px;

}

.page-title{

    font-size:40px;

    font-weight:800;

    color:#1f2f7a;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:18px;

    margin:0;

    letter-spacing:1px;

}

.page-title i{

    color:#3d7bff;

    font-size:52px;

}

.page-subtitle{

    margin-top:12px;

    font-size:22px;

    color:#5c6475;

    font-weight:500;

}


.calendar-dot{

position:absolute;

bottom:3px;

left:50%;

transform:translateX(-50%);

width:7px;

height:7px;

border-radius:50%;

background:#22c55e;

box-shadow:0 0 5px rgba(34,197,94,.6);

}

.flatpickr-day{

position:relative;





}

.flatpickr-day{
    position:relative;
}

.calendar-dot{
    width:6px;
    height:6px;
    background:#22c55e;
    border-radius:50%;
    position:absolute;
    left:50%;
    bottom:3px;
    transform:translateX(-50%);
}