* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family: Arial, sans-serif;

    background: #f4f6f8;

    color: #222;

}


.app {

    display: flex;

    min-height: 100vh;

}


/* SIDEBAR */

.sidebar {

    width: 230px;

    background: #1f2937;

    color: white;

    padding: 20px;

}


.sidebar h2 {

    text-align: center;

    margin-bottom: 30px;

}


.sidebar button {

    width: 100%;

    padding: 13px;

    margin-bottom: 10px;

    border: none;

    border-radius: 7px;

    background: #374151;

    color: white;

    text-align: left;

    cursor: pointer;

    font-size: 15px;

}


.sidebar button:hover {

    background: #4b5563;

}


/* MAIN */

.main {

    flex: 1;

    padding: 30px;

}


.hidden {

    display: none !important;

}


/* DASHBOARD */

.cards {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

    margin-top: 25px;

}


.card {

    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);

}


.card p {

    font-size: 28px;

    font-weight: bold;

}


/* BOX */

.box {

    background: white;

    padding: 20px;

    margin-top: 20px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.06);

}


/* INPUT */

input,
select {

    padding: 11px;

    margin: 5px;

    border: 1px solid #ccc;

    border-radius: 7px;

    font-size: 14px;

}


/* BUTTON */

button {

    padding: 10px 15px;

    border: none;

    border-radius: 7px;

    cursor: pointer;

}


.box button {

    background: #2563eb;

    color: white;

}


.mark-all-button {

    background: #16a34a !important;

    color: white;

    margin-bottom: 15px;

}


/* TABLE */

.table-container {

    overflow-x: auto;

}


table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;

}


th,
td {

    padding: 12px;

    border-bottom: 1px solid #ddd;

    text-align: center;

}


th {

    background: #f3f4f6;

}


/* ACTION BUTTONS */

.action-button {

    margin: 3px;

    padding: 7px 10px;

    font-size: 13px;

}


.profile-button {

    background: #2563eb;

    color: white;

}


.edit-button {

    background: #f59e0b;

    color: white;

}


.delete-button {

    background: #dc2626;

    color: white;

}


/* ATTENDANCE */

.present-button {

    background: #16a34a !important;

    color: white;

}


.absent-button {

    background: #dc2626 !important;

    color: white;

}


.status {

    font-weight: bold;

    margin-left: 10px;

}


/* PROFILE */

.profile-box {

    max-width: 700px;

    margin: 25px auto;

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.08);

}


.profile-icon {

    font-size: 70px;

    text-align: center;

}


.profile-box h1 {

    text-align: center;

}


.profile-stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin: 20px 0;

}


.profile-stats div {

    background: #f3f4f6;

    padding: 20px;

    text-align: center;

    border-radius: 10px;

}


.profile-stats strong {

    display: block;

    font-size: 25px;

}


.profile-stats span {

    display: block;

    margin-top: 5px;

}


textarea {

    width: 100%;

    min-height: 120px;

    padding: 12px;

    margin-bottom: 10px;

    border: 1px solid #ccc;

    border-radius: 7px;

    resize: vertical;

}


/* FOOTER */

.footer {

    text-align: center;

    padding: 20px;

    color: #777;

    font-size: 14px;

}


.footer strong {

    color: #222;

}


/* MOBILE */

@media (max-width: 700px) {

    .app {

        flex-direction: column;

    }


    .sidebar {

        width: 100%;

    }


    .sidebar button {

        width: auto;

    }


    .main {

        padding: 15px;

    }


    .profile-stats {

        grid-template-columns: 1fr;

    }

}