/* ============================
     tests.css
     Centralized CSS for Gifted Evaluation Test (GET)
     Located at: public/assets/css/tests.css
============================= */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

/* ============================
     General Styles
============================= */

/* Apply the Poppins font to the entire page for a modern look */
body {
    font-family: "Poppins", sans-serif, 'Open Sans', sans-serif;
    background-color: whitesmoke;
    padding-top: 70px; /* Ensure content isn't hidden behind fixed elements */
    line-height: 1.52;
    color: #212629;
}

/* Ensure consistent box-sizing across all elements */
*, *::after, *::before {
    box-sizing: border-box;
}

/* Smooth scrolling for better UX */
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

/* ============================
     Header Styles
============================= */

/* Make the test's top header more modern with gradient and spacing */
.section-header {
    background: linear-gradient(135deg, #5b3afb, #0e6ef8);
    padding: 40px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

/* Adjust section-header when removed or modified */
.section-header {
    padding: 10px 0; /* Reduced padding */
    background: none; /* Remove gradient background if desired */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Category title styling */
.category-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0;
    color: #4b4b4c; /* Ensures consistent color */
}

/* ============================
     Timer Styles
============================= */

/* Fixed Timer Box Styling */
.fixed-timer-box {
    display: none; /* Hide initially */
    position: fixed;
    top: 10px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff; /* White background */
    padding: 10px 20px;
    border: 2px solid #0d6efd; /* Primary color border */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050; /* Ensure it's above other elements */
    align-items: center;
    justify-content: center;
}

/* Timer Text Styling */
#section-1-timer {
    color: #0d6efd; /* Primary color text */
    font-size: 24px;
    font-weight: bold;
    font-family: "Poppins", sans-serif; /* Ensure consistent font */
}

/* Timer Responsive Adjustments */
@media (max-width: 768px) {
    .fixed-timer-box {
        width: 90%;
        left: 5%;
        transform: none;
        text-align: center;
    }

    #section-1-timer {
        font-size: 20px;
    }
}

/* ============================
     Question and Answer Styles
============================= */

/* Ensure question containers take full width and stack vertically */
.question-container {
    width: 100%;
    display: block; /* Ensure it's block */
}

/* Update test-box to a lighter border and subtle box-shadow for modern look */
.test-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    margin-left: 3px;
    margin-right: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd; /* Lightened border */
    height: auto; /* Remove forced height */
    width: 100%; /* Ensure full width within container */
}

/* Radio inputs at a comfortable scale */
input[type='radio'] {
    transform: scale(1.2);
    margin-right: 5px;
}

/* Radio label styling */
.radio-inline {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

/* ============================
     Button Styles
============================= */

/* Continue/Submit Button with a modern look */
.continueButton.btn.btn-primary {
    background-color: #0e6ef8;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    color: #fff; /* Ensure text is readable */
    cursor: pointer;
    display: inline-block; /* Ensure it doesn't take full width */
}

/* Hover state for Continue/Submit Button */
.continueButton.btn.btn-primary:hover {
    background-color: #5b3afb;
}

/* Proceed Button in Modal */
#proceedButton {
    background-color: #0e6ef8;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#proceedButton:hover {
    background-color: #5b3afb;
}

/* ============================
     Modal Styles
============================= */

/* Modal Content Styling */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#headerModal .modal-content {
    padding-left: 3px;
    padding-right: 3px;
}

/* Modal Header Styling */
.modal-header {
    background: #0e6ef8;
    color: #fff;
    border-bottom: none;
    align-items: center;
}

.modal-header h5 {
    color: #fff;
}

/* Modal Title Styling */
.modal-title {
    margin: 0;
    font-weight: 500;
}

/* Modal Footer Styling */
.modal-footer {
    border-top: none;
}

/* Backdrop coloring for modals */
.modal-backdrop.show {
    background-color: black !important;
}

/* ============================
     Navbar Styles
============================= */

/* Navbar Link Styling for Reusability */
.navbar .nav-link {
    font-weight: 700;
    color: #0d6efd; /* Ensure nav links have consistent color */
}

/* Ensure navbar-nav is column on small screens and row on large screens */
.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

/* Override navbar-nav to row on large screens and align to the right */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: row; /* Override column on large screens */
        margin-left: auto;   /* Push nav items to the right */
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        margin-left: 15px; /* Space between nav links */
    }
}

/* ============================
     Footer Styles
============================= */

/* Add margin above the footer */
footer {
    margin-top: 50px; /* Adjust the value as needed */
}

/* If your footer has a specific class, e.g., .footer, use that instead */
.footer {
    margin-top: 50px; /* Adjust the value as needed */
}

/* ============================
     Responsive Styles
============================= */

/* Ensure columns become full-width on smaller screens */
@media (max-width: 768px) {
    .col-12.col-md-8,
    .col-12.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .test-box {
        padding: 15px;
        margin-left: 3px;
        margin-right: 3px;
    }

    #headerModal .modal-content {
        padding-left: 3px;
        padding-right: 3px;
    }
}

/* Additional Responsive Adjustments if needed */
@media (max-width: 768px) {
    .fixed-timer-box {
        width: 90%;
        left: 5%;
        transform: none;
        text-align: center;
    }

    #section-1-timer {
        font-size: 20px;
    }
}

/* ============================
     Miscellaneous Styles
============================= */

/* Radio Button Spacing */
.radio-spacing {
    margin-right: 5px;
}

/* Ensure buttons have no border radius by default */
button {
    border-radius: 0;
}

/* Override sticky-top to prevent conflicts */
.sticky-top {
    position: static !important; /* Override to prevent conflicts */
}

/* ============================
     New Instruction Box Styles
============================= */

/* Use these classes for inserted instructions so we don't need inline styles */
.instruction-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Make images in instruction boxes responsive and centered */
.instruction-box .instruction-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}
