/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    font-family: "Segoe UI", sans-serif;
    height: 100%;
    background-color: #f4f7fa;
}

/* ========== FIXED TOP BAR ========== */
.schoolbase {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1e88e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.schoolbase h1 {
    font-size: 18px;
    letter-spacing: 1px;
}

.schoolbase h3 {
    font-size: 16px;
    font-weight: normal;
}

/* ========== MAIN LAYOUT ========== */
.contentBody {
    display: flex;
    margin-top: 60px; /* height of top bar */
    min-height: calc(100vh - 60px);
}

/* ========== FIXED SIDE NAV ========== */
.navSide {
    position: fixed;
    top: 60px; /* below header */
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background-color: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    z-index: 900;
    padding-top: 25px;
}

.navSide ul {
    list-style: none;
    padding: 0;
}

.navSide ul li {
    padding: 14px 24px;
    margin: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.navSide ul li:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.navSide ul li button{
    
    padding: 12px 24px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navSide ul li button:hover{
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.navSide ul li button:active{
    transform: scale(0.98);
}

/* ========== DASHBOARD AREA ========== */
.dashOptions {
    margin-left: 220px; /* width of navSide */
    flex: 1;
    padding: 30px;
}

/* ========== TITLE STYLING ========== */
.dashOptions .title h2 {
    font-size: 22px;
    color: #2c3e50;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Stack layout for small screens */
    .schoolbase {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .navSide {
        position: relative;
        width: 100%;
        height: auto;
        top: 20px;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .navSide ul {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        margin-top: 10%;
    }

    .navSide ul li {
        flex: 1;
        padding: 12px;
        text-align: center;
        white-space: nowrap;
        font-size: 14px;
    }

    .contentBody {
        flex-direction: column;
        margin-top: 0;
    }

    .dashOptions {
        margin-left: 0;
        padding: 20px;
    }
}
