/*
 * Main application styles
 */

/* Use a cleaner, more modern font */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Style for the login/register card */
.login-card h2,
.register-card h2 {
    font-weight: 700;
    color: #333;
}

.login-card .form-control,
.register-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.login-card .btn-primary,
.register-card .btn-primary {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
}

/*
 * Footer Styles
 */

.footer-dark-bg {
    background-color: #222; /* Dark background */
    color: #ffffff;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-text-muted {
    color: #ccc !important; /* Lighter text for dark bg */
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-dark-bg h5 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 0.75rem;
    /* For icon alignment */
    display: flex;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Social icons (styled like the example image) */
.footer-social-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    margin-right: 5px;
    font-weight: bold;
    font-family: sans-serif;
    transition: background-color 0.2s;
}

.footer-social-icon:hover {
    background-color: var(--bs-primary); /* Use Bootstrap primary color */
    color: #fff;
}

/* Authentic Board Exam Theme */
body.exam-mode {
    background-color: #d1d9e6; /* Desk surface color */
}

.paper-container {
    background: #fff;
    background-image: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 2rem; /* Mimics standardized lined paper */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
    padding: 4rem !important;
    min-height: 1000px;
    font-family: "Courier New", Courier, monospace; /* Traditional exam font */
}

/* PRC-Style Header Layout */
.prc-border-box {
    border: 3px solid #0056b3;
    padding: 15px;
    margin-bottom: 2rem;
    text-align: center;
    color: #0056b3;
}

.prc-header-text {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scantron Bubble UI */
.scantron-bubble {
    display: none; /* Hide standard radio button */
}

.scantron-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 8px 0;
    transition: all 0.2s ease;
}

/* The Bubble Circle */
.scantron-label::before {
    content: "";
    width: 32px;
    height: 32px;
    border: 2px solid #444;
    border-radius: 50%;
    margin-right: 20px;
    display: inline-block;
    flex-shrink: 0;
}

/* The "Shading" Effect (No. 2 Pencil) */
.scantron-bubble:checked + .scantron-label::before {
    background-color: #222 !important; /* Shaded lead color */
    box-shadow: inset 0 0 0 4px white; /* Realism white ring */
    border-color: #000;
}


/* PRC Digital Scantron Theme */
body.prc-simulation {
    background-color: #5a7d9a; /* Background similar to the sheet border */
    font-family: Arial, sans-serif;
}

.exam-desktop {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 70px);
}

/* Left Side: The Question Booklet */
.question-booklet {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}

/* Right Side: The PRC Answer Sheet */
.digital-scantron {
    width: 450px;
    background: #fff;
    border: 2px solid #000;
    padding: 15px;
    overflow-y: auto;
    font-size: 11px;
}

.prc-header-blue {
    background-color: #7ba6cc;
    color: white;
    text-align: center;
    padding: 10px;
    border: 1px solid #000;
    margin-bottom: 10px;
}

.scantron-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-family: "Courier New", monospace;
}

.q-num {
    width: 25px;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
}

/* Authentic PRC Bubbles */
.prc-bubble-label {
    display: inline-block;
    width: 22px;
    height: 18px;
    border: 1px solid #7ba6cc;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    margin: 0 2px;
    cursor: pointer;
    font-weight: bold;
    color: #7ba6cc;
    transition: all 0.2s;
}

.prc-bubble-radio:checked + .prc-bubble-label {
    background-color: #222 !important; /* Pencil Shading */
    color: #fff !important;
    border-color: #222;
}

.prc-bubble-radio {
    display: none;
}

