/* =========================================
   AYLI LEADERSHIP SCHOOL DATABASE SYSTEM
   MAIN STYLES
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   GLOBAL DOCUMENT / SCROLLING
   ========================================= */

html {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    min-height: 100%;
    height: auto;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* =========================================
   LAYOUT
   ========================================= */

.app {
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    width: 260px;
    min-height: 100vh;
    height: 100vh;
    background: #0f2d46;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}

.logo-area {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    background: #f2c94c;
    color: #0f2d46;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logo-text h2 {
    font-size: 18px;
}

.logo-text p {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}

.menu {
    padding: 20px 12px;
}

.menu-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    padding: 10px 14px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dbe7f0;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    transition: 0.2s;
}

.menu a:hover {
    background: rgba(255,255,255,0.08);
}

.menu a.active {
    background: #f2c94c;
    color: #0f2d46;
    font-weight: bold;
}

.menu-icon {
    width: 24px;
    text-align: center;
    font-size: 17px;
}

/* =========================================
   MAIN
   ========================================= */

.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

/* =========================================
   TOPBAR
   ========================================= */

.topbar {
    height: 80px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.page-title h1 {
    font-size: 24px;
}

.page-title p {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

.admin {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f2d46;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.admin-info strong {
    display: block;
    font-size: 12px;
}

.admin-info span {
    font-size: 10px;
    color: #718096;
}

/* =========================================
   CONTENT
   ========================================= */

.content {
    padding: 30px;
    min-height: calc(100vh - 80px);
    height: auto;
    overflow: visible;
    padding-bottom: 50px;
}

/* =========================================
   WELCOME
   ========================================= */

.welcome {
    background: #0f2d46;
    color: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
}

.welcome h2 {
    font-size: 20px;
    margin-bottom: 7px;
}

.welcome p {
    font-size: 12px;
    opacity: 0.75;
}

/* =========================================
   STATISTICS
   ========================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #edf3f8;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 21px;
}

.stat-label {
    color: #718096;
    font-size: 11px;
}

.stat-number {
    font-size: 25px;
    margin-top: 5px;
}

/* =========================================
   DASHBOARD CARDS
   ========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 23px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-description {
    font-size: 11px;
    color: #718096;
    margin-bottom: 20px;
}

/* =========================================
   OVERVIEW
   ========================================= */

.overview-item {
    display: flex;
    justify-content: space-between;
    padding: 13px;
    background: #f7fafc;
    margin-bottom: 8px;
    border-radius: 7px;
    font-size: 12px;
}

.overview-item strong {
    color: #0f2d46;
}

/* =========================================
   QUICK ACTIONS
   ========================================= */

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action {
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.2s;
}

.action:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.action-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    text-align: center;
    padding: 25px;
    color: #718096;
    font-size: 11px;
}

/* =========================================
   LOGIN / PROFILE LOGOS
   ========================================= */

.login-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.profile-logo {
    text-align: center;
    margin-bottom: 15px;
}

.profile-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* =========================================
   AYLI STUDENT DASHBOARD
   ========================================= */

.student-dashboard-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.student-dashboard-card {
    display: block;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #1b3a57;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.student-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.student-dashboard-card h3 {
    margin: 12px 0 10px;
    color: #1b3a57;
}

.student-dashboard-card p {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================
   LOGOUT CARD
   ========================================= */

.logout-card {
    width: 100%;
    border: 1px solid #dddddd;
    font-size: inherit;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

.logout-card:hover {
    cursor: pointer;
}

/* =========================================
   TABLE / CONTENT SAFETY
   ========================================= */

table {
    max-width: 100%;
}

img {
    max-width: 100%;
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */

@media (max-width: 1100px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================
   RESPONSIVE — MOBILE / SMALL TABLET
   ========================================= */

@media (max-width: 800px) {

    html,
    body {
        width: 100%;
        min-height: 100%;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .app {
        width: 100%;
        min-height: 100vh;
        height: auto !important;
        display: flex;
        align-items: flex-start;
        overflow: visible !important;
    }

    .sidebar {
        width: 70px;
        height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
    }

    .logo-area {
        justify-content: center;
        padding: 15px 5px;
    }

    .logo-text,
    .menu-title {
        display: none;
    }

    .menu a {
        justify-content: center;
        padding: 14px 5px;
        font-size: 0;
    }

    .menu-icon {
        font-size: 18px;
    }

    .main {
        margin-left: 70px;
        width: calc(100% - 70px);
        min-height: 100vh;
        height: auto !important;
        overflow: visible !important;
    }

    .topbar {
        min-height: 80px;
        height: auto;
    }

    .content {
        min-height: calc(100vh - 80px);
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 70px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .student-dashboard-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

/* =========================================
   RESPONSIVE — PHONE
   ========================================= */

@media (max-width: 600px) {

    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .app {
        min-height: 100vh;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar {
        height: 100vh;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main {
        min-height: 100vh;
        height: auto !important;
        overflow: visible !important;
    }

    .content {
        padding: 15px;
        padding-bottom: 100px;
        min-height: calc(100vh - 80px);
        height: auto !important;
        overflow: visible !important;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 15px;
        min-height: 80px;
        height: auto;
    }

    .admin {
        display: none;
    }

    .welcome {
        padding: 25px 22px;
    }

    .welcome h2 {
        font-size: 20px;
    }

    .student-dashboard-card {
        padding: 20px;
    }

}

/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 400px) {

    .sidebar {
        width: 62px;
    }

    .main {
        margin-left: 62px;
        width: calc(100% - 62px);
    }

    .content {
        padding: 12px;
        padding-bottom: 100px;
    }

    .topbar {
        padding: 0 12px;
    }

}
/* ==========================================================
   STUDENT DASHBOARD - GRADUATION STATUS
   ========================================================== */

#dashboardGraduationStatus {
    width: 100%;
    margin: 0 0 25px;
}

.dashboard-clearance {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #0B3D91;
}

.dashboard-clearance.cleared {
    background: #eaf8ef;
    border-left-color: #16803c;
}

.dashboard-clearance.pending {
    background: #fff8e6;
    border-left-color: #F4B400;
}

.dashboard-clearance .clearance-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.dashboard-clearance .clearance-text {
    flex: 1;
}

.dashboard-clearance .clearance-text h3 {
    margin: 0 0 6px;
    color: #0B3D91;
    font-size: 18px;
}

.dashboard-clearance .clearance-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.dashboard-clearance.cleared .clearance-text strong {
    color: #16803c;
}

.dashboard-clearance.pending .clearance-text strong {
    color: #805f00;
}

.dashboard-clearance .clearance-text p {
    margin: 4px 0;
    color: #52606D;
}

.clearance-button {
    display: inline-block;
    background: #0B3D91;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.clearance-button:hover {
    background: #082f70;
}

@media (max-width: 700px) {

    .dashboard-clearance {
        flex-direction: column;
        align-items: flex-start;
    }

    .clearance-button {
        width: 100%;
        text-align: center;
    }

}

/* ==========================================================
   MOBILE SIDEBAR - SHOW MENU NAMES
   ========================================================== */

@media (max-width: 800px) {

    .sidebar {
        width: 175px !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .logo-area {
        justify-content: flex-start !important;
        padding: 15px 12px !important;
    }

    .logo-text {
        display: block !important;
    }

    .menu-title {
        display: block !important;
        font-size: 10px !important;
    }

    .menu a {
        justify-content: flex-start !important;
        gap: 8px;
        padding: 11px 10px !important;
        font-size: 11px !important;
        white-space: normal;
    }

    .menu-icon {
        width: 24px;
        min-width: 24px;
        font-size: 17px !important;
        text-align: center;
    }

    .main {
        margin-left: 175px !important;
        width: calc(100% - 175px) !important;
    }
}

/* ==========================================================
   VERY SMALL PHONES
   ========================================================== */

@media (max-width: 400px) {

    .sidebar {
        width: 165px !important;
    }

    .main {
        margin-left: 165px !important;
        width: calc(100% - 165px) !important;
    }

    .menu a {
        padding: 10px 8px !important;
        font-size: 10px !important;
    }

    .menu-icon {
        width: 22px;
        min-width: 22px;
        font-size: 16px !important;
    }
}