﻿/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 20px;
}
/* ===== HEADER ===== */
#topContent {
    background-color: #057ba1;
    color: white;
    padding: 15px;
    padding-left: 40px;
    width: 100%;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.logo {
    flex: 0 0 auto;
}
.main-logo {
    max-width: 260px;
    height: auto;
    display: block;
}
.logo img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}
.c1 {
    flex: 1;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
}

.user-info {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 14px;
    text-align: right;
}

.logout-btn,
.logout-btn:link,
.logout-btn:visited {
    background-color: #ffffff !important;
    color: #202A44 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}
    .logout-btn:hover {
        background-color: #c62828;
    }
    .logout-btn:active {
        background-color: #b71c1c !important;
    }
#form2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* ===== FOOTER ===== */
#footerContent {
    background-color: #057ba1;
    color: white;
    text-align: center;
    height: 80px;
    line-height: 80px;
    
    font-size: 14px;
}

.clickme {
    background-color: #057ba1;
    padding: 3px 4px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    border-radius: 2px;
    cursor: pointer;
}
/* ===== MENU BAR ===== */
.main-nav {
    background-color: #046a8c;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
}

    /* ===== MAIN ITEMS ===== */
    .menu > li {
        position: relative;
    }

        .menu > li > a {
            display: block;
            padding: 6px 18px;
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

            .menu > li > a:hover,
            .menu > li.active > a {
                background-color: #023140;
            }

/* ===== SUB MENU ===== */
.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #057ba1;
    min-width: 220px;
    display: none;
    z-index: 1000;
}

    .sub-menu li a {
        display: block;
        padding: 8px 14px;
        color: white;
        font-weight: normal;
        text-decoration: none;
        border-bottom: 1px solid #046a8c;
    }

        .sub-menu li a:hover {
            background-color: #023140;
        }

/* ===== SHOW SUBMENU ON HOVER (DESKTOP) ===== */
.has-sub:hover .sub-menu {
    display: block;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: white;
    padding: 10px;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {

    .menu-toggle {
        display: block;
        text-align: right;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: #046a8c;
        width: 100%;
    }

        .menu.show {
            display: flex;
        }

        .menu > li > a {
            border-top: 1px solid #035a75;
            text-align: left;
        }

    /* Mobile Sub Menu */
    .sub-menu {
        position: static;
        display: none;
        background-color: #057ba1;
    }

    .has-sub.open .sub-menu {
        display: block;
    }
}
/* ===== GRID WRAPPER ===== */
.pro-grid {
    border-collapse: collapse;
    width: 100%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    font-size: 11px;
}

    /* ===== HEADER ===== */
    .pro-grid th {
        background: #057ba1;
        color: #fff;
        padding: 8px 6px;
        text-align: center;
        font-weight: bold;
        border: 1px solid #e0e0e0;
        white-space: nowrap;
    }

    /* ===== ROWS ===== */
    .pro-grid td {
        padding: 6px 6px;
        border: 1px solid #e6e6e6;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }

/* Normal row */
.pro-grid-row {
    background-color: rgba(255,255,255,0.85);
}

/* Alternating row */
.pro-grid-alt {
    background-color: rgba(210,243,252,0.6);
}

/* Hover effect */
.pro-grid tr:hover {
    background-color: rgba(200,230,240,0.9);
}

/* ===== LINKS ===== */
.grid-link {
    color: #057ba1;
    font-weight: bold;
    text-decoration: none;
}

    .grid-link:hover {
        text-decoration: underline;
    }

/* ===== BUTTONS ===== */
.grid-btn {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: white;
}
.btn-view {
    background-color: #17a2b8;
    color: white;
}


/* Button colors */
.btn-update {
    background-color: #5a9bd4;
}

.btn-subjects {
    background-color: #70ad47;
}

.btn-fees {
    background-color: #ed7d31;
}

.btn-edit {
    background-color: #a64d79;
}

.grid-btn:hover {
    opacity: 0.85;
}

/* ===== PAGER ===== */
.pro-grid-pager {
    text-align: center;
    padding: 10px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {

    .pro-grid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .grid-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}
/* ===== LIST TOOLBAR ===== */
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
}

/* LEFT */
.toolbar-left {
    display: flex;
    gap: 6px;
}

/* CENTER TITLE */
.toolbar-center {
    background-color: #057ba1;
    color: white;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
}

/* RIGHT SEARCH */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ICON BUTTONS */
.icon-btn {
    width: 25px;
    height: 20px;
    cursor: pointer;
}

/* SEARCH BOX */
.toolbar-search {
    width: 260px;
    font-size: 11px;
    background-color: rgb(255,255,192);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }

    .toolbar-search {
        width: 100%;
    }
}
/* ===== OFFICE MAIN SECTION ===== */
.officeMain {
    width: 100%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.85);
    box-sizing: border-box;
}

/* Header */
.officeHeader {
    text-align: center;
    margin-bottom: 30px;
}

    .officeHeader h2 {
        color: #046a8c;
        font-size: 24px;
        margin-bottom: 5px;
    }

    .officeHeader p {
        font-size: 16px;
        color: #555;
    }

/* ===== DESKTOP LAYOUT ===== */
.officeCards {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center; /* center horizontally */
    gap: 20px;
}

/* Individual Card */
.officeCard {
    width: 75%; /* desktop width */
    background: rgba(4, 106, 140, 0.05);
    border: 1px solid #d9eef5;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
}

    .officeCard h3 {
        font-size: 15px;
        color: #046a8c;
        margin-bottom: 8px;
    }

    .officeCard p {
        font-size: 14px;
        color: #333;
        line-height: 1.5;
    }

    /* Hover Effect */
    .officeCard:hover {
        background: rgba(4, 106, 140, 0.1);
        transform: translateY(-3px);
    }

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 900px) {
    .officeCards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .officeCard {
        width: 100%;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
    .officeMain {
        padding: 15px;
    }

    .officeCards {
        grid-template-columns: 1fr;
    }

    .officeHeader h2 {
        font-size: 18px;
    }

    .officeCard h3 {
        font-size: 14px;
    }

    .officeCard p {
        font-size: 12px;
    }
}
/* ===== LOGIN FORM CONTAINER ===== */
.loginForm {
    width: 420px;
    max-width: 92%;
    margin: 40px auto;
    padding: 15px;
    border: 1px solid #000080;
    background-color: #F0F8FF;
    box-sizing: border-box;
    text-align: center;
}

/* ===== TABLE ===== */
.loginTable {
    width: 100%;
    border: 1px dotted red;
    background-color: #F0F8FF;
    margin: auto;
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* ===== CAPTION ===== */
.loginCaption {
    font-size: 26px;
    font-weight: bold;
    color: #000080;
    padding-bottom: 15px;
}

/* ===== LABELS ===== */
.loginLabel {
    text-align: right;
    font-size: 15px;
    font-weight: bold;
    color: #000080;
    padding-right: 10px;
    white-space: nowrap;
}

/* ===== INPUTS ===== */
.loginInput {
    width: 210px;
    max-width: 100%;
    height: 24px;
    padding: 3px 6px;
    font-size: 13px;
    border: 1px solid #777;
    box-sizing: border-box;
}

/* ===== LOGIN BUTTON ===== */
.loginButton {
    margin-top: 15px;
    padding: 6px 18px;
    background-color: #046a8c;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}

    .loginButton:hover {
        background-color: #023140;
    }

/* ===== ERROR LABEL ===== */
.loginError {
    display: block;
    margin-top: 10px;
    color: red;
    font-size: 13px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {

    .loginForm {
        padding: 10px;
    }

    .loginTable {
        border-spacing: 0 8px;
    }

    .loginLabel {
        text-align: left;
        padding-bottom: 3px;
        font-size: 14px;
    }

    .loginTable tr {
        display: block;
    }

    .loginTable td {
        display: block;
        width: 100%;
    }

    .loginInput {
        width: 100%;
        height: 26px;
    }

    .loginCaption {
        font-size: 20px;
    }
}
@media screen and (max-width: 850px) {

    .logo img {
        max-width: 300px;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .main-logo {
        max-width: 180px;
        margin-bottom: 8px;
    }

    .c1 {
        font-size: 20px;
        margin: 6px 0;
    }

    .user-info {
        text-align: center;
        margin-top: 8px;
    }

    .logout-btn {
        margin-top: 8px;
    }
}
/* Mobile */
@media screen and (max-width: 600px) {
    .logo img {
        max-width: 220px;
    }
}

