body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    background-image: url('./images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background: #fff;
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 4px solid #ddd;
}

header img {
    height: 50px;
    margin-left: 20px;
}

header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    position: absolute;
    left: 46%;
    transform: translateX(-50%);
}

.pace-progress {
    background: #0d6efd !important;
}

.toast {
    top: 80px;
}

/* .logged-in {
    display: none;
} */

.btn-login {
    background-color: #8eacbb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #7ba6b1;
}

.navbar {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar-text {
    margin: 10px;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    height: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: auto;
    margin-top: 140px;
    margin-left: 500px;
    transform: translateY(-20px);
}

main {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
}

.containerr {
    max-width: 1500px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.report-sections-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: left;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 20px;
}

.report-section {
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 350px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-top: 20px;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    
}

.upload-container label {
    margin-bottom: 5px;
}

.upload-container input[type="file"] {
    margin-bottom: 10px;
    align-self: center;
    height: 110px;
    width: 320px;
}



.file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.file-list li {
    margin-bottom: 5px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.last-uploaded-files {
    margin-top: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
}

.last-uploaded-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.report-section {
    width: 100%;
    box-sizing: border-box;
}

.file-list li button {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
    font-weight: bold;
}

.file-list li button:hover {
    color: #c0392b;
}

h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700; 
    /* border-bottom: 2px solid #eee; */
    padding-bottom: 12px; 
    color: #007bff;
}


.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.form-group {
    flex: 1;
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

select {
    width: 100%;
    max-width: 300px;
    height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* background-image: url('path/to/your-arrow-icon.png'); */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

input[type="file"] {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button.submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button.submit-btn:active {
    transform: translateY(0);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    min-width: 550px;
    max-width: 80%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center; 
    line-height: 1.5; 
}




.popup.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
}

.popup p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.popup-details-toggle {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    font-size: 13px;
    color: #007bff;
    background: none;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
}

.popup-details-toggle:hover {
    background-color: #007bff;
    color: #fff;
}

.popup-details {
    margin-top: 10px;
    text-align: left;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.popup-details pre {
    margin: 0 0 8px 0;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

.popup-details-copy {
    padding: 4px 10px;
    font-size: 12px;
    color: #333;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.popup-details-copy:hover {
    background-color: #ddd;
}

#please-wait {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#please-wait.show {
    opacity: 1;
    visibility: visible;
}

.report-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}


.report-section {
    position: relative; 
}

.exclamation-icon {
    position: absolute;
    top: 10px; 
    right: 10px; 
    width: 20px; 
    height: 20px;
    cursor: pointer;
}

.exclamation-icon:hover {
    opacity: 0.7; 
}

/* Tooltip */
.exclamation-icon:hover::after {
    content: attr(title); 
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}


.popup .message {
    text-align: center;
    font-size: 16px;
}

.popup img {
    display: block;
    margin: 0 auto;
}


#progressBarContainer {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    border-radius: 25px; 
    width: 100%; 
    height: 8px; 
    background-color: #f0f0f0; 
    display: none; 
    margin: 10px 0; 
}

#uploadProgress {
    height: 100%; 
    background-color: #4caf50; 
    width: 0%; 
    border-radius: 25px; 
    transition: width 0.4s ease-in-out; 
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); 
}

.form-group {
    margin-top: 10px; 
}




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

.popup p {
    margin-top: 10px;
}

#popupMessage {
    white-space: pre-line; 
}



.popup.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
}


/* Tooltip Popup */
.tooltip-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    width: auto;
    min-width: 550px;
    max-width: 80%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left; 
    line-height: 1.5; 
}

.tooltip-popup.show {
    display: block;
}

.tooltip-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}


.close-tooltip {
    position: absolute;
    top: 5px;             
    right: 5px;             
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    background: none;       
    border: none;           
    padding: 0;
    margin: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tab-container {
    display: flex;
}

.tab-button {
    padding: 8px 30px; 
    background-color: white;
    border: 1px solid white; 
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    color: #007bff;
    margin-right: -1px; 
}

.tab-button:first-child {
    margin-left: 0; 
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-button:hover {
    background-color: #0376f1;
    color: white;
}



/* --------------------------------- */


/* Background and Layout */
body {
    background-image: url("../images/bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* Login Container */
.login-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    height: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: left;
    margin-top: 200px;
}

/* Header h1 */
.header h1 {
    margin-left: 100px;
}

/* Navbar Text */
.navbar-text {
    margin: 10px;
}

/* Textarea pre-wrap */
textarea {
    white-space: pre-wrap;
}

/* Select full width */
select {
    width: 100%;
}

/* Popup Image */
#popupImage {
    max-width: 50px;
    margin-bottom: 10px;
}

/* Hidden elements */
.hidden {
    display: none;
}




/* --------------------------------- */

 .login-container {
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            width: 400px;
            height: 350px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            text-align: center;
            margin-top: 200px;
        }
        .login-logo {
            width: 40%;
            height: center;
            max-width: 300px; 
            margin-top: 45px;
        }
        #btn_login {
            margin-top: 15px; 
            background-color: #007bff; 
            color: white; 
            transition: background-color 0.3s; 
            padding: 5px 30px; 
            font-size: 18px; 
        }
        #btn_login:hover {
            background-color: #0056b3; 
        }
        .header {
            background-color: white;
            padding: 10px 0;
            text-align: center;
            position: relative;
        }
        .header img {
            max-width: 100px; 
        }

        .navbar {
            padding: 0;
        }
        .navbar-text {
            margin-right: center;
            color: #fff; 
        }

        .submit-btn-container {
            text-align: center;
        }


        .popup-red {
            color: red;
        }


.subject-disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}


































