/* ====== NU THEME ====== */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #F3F4F6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #1E3A8A;
    color: white;
}

.btn-primary:hover {
    background: #142C6E;
}

.btn-accent {
    background: #FACC15;
    color: #1E3A8A;
}

.btn-accent:hover {
    background: #eab308;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 5px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #1E3A8A;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.header-bar {
    display: flex;
    justify-content: space-between; /* pushes items left and right */
    align-items: center;
}

.student-photo {
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    cursor:pointer;
    transition:0.3s;
}

.student-photo:hover {
    transform:scale(1.1);
    box-shadow:0 6px 15px rgba(0,0,0,0.3);
}

/* IMAGE MODAL */
#imageModal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal-content {
    text-align:center;
    animation:fadeIn 0.3s ease;
}

.modal-content img {
    width:250px;
    height:250px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid #FACC15;
}

.modal-name {
    color:white;
    margin-top:15px;
    font-size:20px;
    font-weight:bold;
}

.close-btn {
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:30px;
    cursor:pointer;
}

@keyframes fadeIn {
    from {opacity:0; transform:scale(0.8);}
    to {opacity:1; transform:scale(1);}
}

/* MODAL FIXED */
#imageModal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
}

.modal-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
}

.modal-content {
    position:relative;
    z-index:10000;
    margin:8% auto;
    width:300px;
    text-align:center;
    animation:fadeIn 0.3s ease;
}

.modal-content img {
    width:260px;
    height:260px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid #FACC15;
    background:white;
}

.modal-name {
    color:white;
    margin-top:15px;
    font-size:20px;
    font-weight:bold;
}

.close-btn {
    position:absolute;
    top:-10px;
    right:-10px;
    background:white;
    color:black;
    border-radius:50%;
    width:35px;
    height:35px;
    font-size:22px;
    line-height:35px;
    cursor:pointer;
}

@keyframes fadeIn {
    from {opacity:0; transform:scale(0.8);}
    to {opacity:1; transform:scale(1);}
}

/* EXCUSE MODAL */
#excuseModal {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
}

.excuse-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
}

.excuse-content {
    position:relative;
    width:80%;
    max-width:800px;
    height:80%;
    margin:5% auto;
    background:white;
    border-radius:15px;
    padding:20px;
    z-index:10000;
    overflow:auto;
    animation:fadeIn 0.3s ease;
}

.close-excuse {
    position:absolute;
    top:10px;
    right:20px;
    font-size:30px;
    cursor:pointer;
}

#excuseViewerContainer iframe,
#excuseViewerContainer img {
    width:100%;
    height:100%;
    border:none;
}

.header {
    display: flex;
    align-items: center;
}

.header a {
    margin-left: auto;
}

button:disabled{
opacity:0.5;
cursor:not-allowed;
}






