/* Fix SweetAlert2 Shifting Issue */
body.swal2-height-auto {
    height: 100vh !important;
}

/* Animated Background */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #892062, #ab2d74);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Animation */
#background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#background-shapes div {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: moveUp 10s infinite linear;
}

@keyframes moveUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 1;
    }
}

/* Buttons */
.btn-submit,
.btn-back,
.btn-preview-gradings {
    background: #892062;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.btn-submit:hover,
.btn-back:hover,
.btn-preview-gradings:hover {
    background: #701750;
    color: white !important;
}

/* Upload Assignment */
#upload-assignment-section {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    text-align: center;
    z-index: 1;
}

#upload-assignment-section h3 {
    color: #892062;
    font-weight: bold;
    font-size: 24px;
}

#upload-area {
    border: 2px dashed #892062;
    padding: 20px;
    background: #f8e1eb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

#upload-area:hover {
    background: #f0b6ce;
}

#upload-area p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #892062;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#file-name {
    font-size: 16px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

#assignment {
    display: none;
}

/* Grading Information */
#grading-information-history,
#grading-information-details {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    height: 90%;
    overflow: hidden;
    text-align: left;
    z-index: 1;
}

#grading-information-history #wrapper,
#grading-information-details #wrapper {
    position: relative;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#grading-information-history #wrapper h3,
#grading-information-details #wrapper h3 {
    color: #892062;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    margin: 0;
}

#grading-information-history #wrapper .btn-back,
#grading-information-details #wrapper .btn-back {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(0%, -50%);
    width: auto;
    padding: 3px 6px;
}

#grading-history-table,
#grading-content {
    height: calc(100% - 40px);
    overflow-y: auto;
    padding: 10px;
}

/* Table Structure */
#grading-information-history table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#grading-information-history thead {
    background-color: #892062;
    color: white;
    font-weight: bold;
    font-size: 16px;
    position: sticky;
    top: -10px;
}

#grading-information-history thead th {
    padding: 6px 8px;
    text-align: center;
}

#grading-information-history tbody td {
    padding: 6px 8px;
    text-align: center;
    font-size: 15px;
    border-top: 1px solid #eee;
    color: #333;
}

#grading-information-history tbody tr:hover {
    background-color: rgb(235, 229, 232);
    transition: background 0.3s ease;
}

#grading-information-history tbody td button {
    background-color: #892062;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

#grading-information-history tbody td button:hover {
    background-color: #701750;
}


/* Responsive Design */
@media (max-width: 768px) {
    #upload-assignment-section {
        max-width: 90%;
        padding: 20px;
    }
}
