/* ===== BOOTSTRAP 5 MODERN THEME - CONSOLIDATED CSS ===== */
/* This file contains all custom styles for Bootstrap 5 updated pages */
/* CSS Loaded Successfully - Version 1.0 */

/* ===== DEBUG STYLES (Remove in production) ===== */


/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* ===== HEADER & NAVIGATION ===== */
.nav-section {
    background: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar {
    background: transparent !important;
    border: none;
    padding: 0;
}

.logo-sec {
    text-align: center;
}

.logo-sec img {
    max-height: 120px;
    width: auto;
 
}

/* ===== MAIN CONTENT AREAS ===== */
.login-section-wrap {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.login-section-main {
    width: 100%;
}

/* ===== LOGIN PAGE SPECIFIC STYLES ===== */
body.login-page {
    background: #092540;
    min-height: 100vh;
}

.login-page .nav-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-page .login-page {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== LOGIN FORM SPECIFIC STYLES ===== */
.login-page .form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-page .welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.login-page .welcome-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-page .welcome-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== PANEL STYLING ===== */
.panel {
    border: none;
    box-shadow: none;
    margin: 0;
}

.panel-primary {
    background: transparent;
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    text-align: center;
}

.panel-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-body {
    padding: 2rem;
    background: white;
}

.panel-footer {
    background: var(--light-color);
    border: none;
    padding: 1.5rem;
}

/* ===== FORM STYLING ===== */
.login-box {
    padding: 0;
}

.login-page-lostpass {
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group-addon {
    background: var(--light-color);
    border: 2px solid #e9ecef;
    border-right: none;
    color: var(--secondary-color);
    padding: 0.75rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: white;
}

.form-control::placeholder {
    color: var(--secondary-color);
    opacity: 0.7;
}

/* ===== INPUT GROUP SPECIFIC STYLING ===== */
.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group .form-control:focus {
    border-left-color: var(--primary-color);
}

/* ===== BUTTON STYLING ===== */
.btn-labeled {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-labeled:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
}

.btn-labeled:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-label {
    display: inline-flex;
    align-items: center;
}

/* ===== REGISTRATION PAGE STYLES ===== */
.register-page {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.reg-head {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 2rem;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reg-head span {
    background: var(--warning-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: 700;
}

.well {
    background: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== FORM SECTION STYLING ===== */
.form-section {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.form-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-weak { background: var(--danger-color); width: 25%; }
.strength-fair { background: var(--warning-color); width: 50%; }
.strength-good { background: var(--info-color); width: 75%; }
.strength-strong { background: var(--success-color); width: 100%; }

/* ===== PROGRESS INDICATOR ===== */
.form-progress {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step-number.active {
    background: var(--primary-color);
    color: white;
}

.step-number.completed {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-align: center;
    font-weight: 500;
}

.step-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step-label.completed {
    color: var(--success-color);
    font-weight: 600;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== REGISTRATION FORM SPECIFIC STYLES ===== */
.register-page .form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.register-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: white;
}

.register-page .btn-primary {
    background: #092540;
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 1rem;
}

.register-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: #0a2d52;
    color: white;
}

/* ===== IMPORTANT OVERRIDES ===== */
/* Ensure these styles take precedence */
.nav-section {
    background:#fff;
    box-shadow: var(--box-shadow) !important;
    padding: 5px 0 !important;
}

.register-page {
    background: #fff !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
}

.reg-head {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%) !important;
    color: white !important;
    padding: 2rem !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

.form-control {
    border: 2px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    background: white !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    background: white !important;
}

/* ===== MYACCOUNT PAGE SPECIFIC STYLES ===== */
.account-page-main {
    background: #fff !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
}

.account-page-main h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%) !important;
    color: white !important;
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.account-page-cont {
    padding: 2rem !important;
}

.account-page-cont h2 {
    background: none !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.75rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%) !important;
    color: white !important;
    padding: 2rem !important;
    border-radius: var(--border-radius) !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.welcome-section h2 {
    margin: 0 !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
}

/* ===== STATS CARDS ===== */
.stats-card {
    background: white !important;
    border-radius: var(--border-radius) !important;
    padding: 1.5rem !important;
    box-shadow: var(--box-shadow) !important;
    text-align: center !important;
    transition: var(--transition) !important;
    height: 100% !important;
}

.stats-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stats-card i {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 1rem !important;
}

.stats-card h4 {
    color: var(--dark-color) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.stats-card p {
    color: var(--secondary-color) !important;
    margin: 0 !important;
}

/* ===== ACCOUNT DETAILS ===== */
.account-details {
    background: var(--light-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
}

.account-details .row {
    margin-bottom: 1.5rem !important;
}

.account-details p {
    background: white !important;
    padding: 1rem !important;
    border-radius: var(--border-radius) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    box-shadow: var(--box-shadow) !important;
    transition: var(--transition) !important;
}

.account-details p:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

.account-details i {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    width: 20px !important;
    text-align: center !important;
}

/* ===== MESSAGES SECTION ===== */
.read-msgs {
    margin-bottom: 2rem !important;
}

.msgs-main-btn {
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.btn-msgs {
    background: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}

.btn-msgs:hover {
    background: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

.msgs-main {
    background: white !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow) !important;
    overflow: hidden !important;
}

/* ===== ACCORDION STYLING ===== */
.accordion {
    border: none !important;
}

.accordion-item {
    border: 1px solid #e9ecef !important;
    margin-bottom: 0.5rem !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
}

.accordion-item:first-of-type {
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.accordion-item:last-of-type {
    border-bottom-left-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

.accordion-button {
    background: var(--light-color) !important;
    border: none !important;
    padding: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    transition: var(--transition) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border: none !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
    padding: 1.5rem !important;
    background: white !important;
}

/* ===== MESSAGE CONTENT ===== */
.sntboxpp {
    margin: 0.5rem 0 !important;
    font-size: 0.9rem !important;
    color: var(--secondary-color) !important;
}

.sntboxpp span {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* ===== REPLY SECTION ===== */
.reply-main {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #e9ecef !important;
}

.read-main-btn {
    margin-bottom: 1rem !important;
}

.btn-reply {
    background: var(--success-color) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
    margin-top: 1rem !important;
}

.btn-reply:hover {
    background: #146c43 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

/* ===== REPLY HISTORY ===== */
.reply-history {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #e9ecef !important;
}

.reply-history h3 {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
}

.reply-history-inbox {
    background: var(--light-color) !important;
    padding: 1rem !important;
    border-radius: var(--border-radius) !important;
}

.reply-history-inbox h2 {
    color: var(--dark-color) !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.reply-history-inbox p {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
}

/* ===== LOGOUT BUTTON ===== */
.btn-logout {
    background: var(--danger-color) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-logout:hover {
    background: #c82333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

/* ===== SUCCESS BUTTON STYLING ===== */
.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%) !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%) !important;
    color: white !important;
}

/* ===== MESSAGES CONTAINER ===== */
.messages-cont-main {
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* ===== EXAM PAGE STYLES ===== */
.exam-page-main {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.exam-head {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.exam-head h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-sec {
    text-align: center;
}

#countdowntimer {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

#hms_timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exam-head p {
    margin: 0;
    text-align: right;
}

.exam-head a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.exam-head a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.ques_details {
    padding: 2rem;
    min-height: 400px;
}

/* ===== INSTRUCTIONS SECTION ===== */
.instructions-section {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.instructions-section h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-list li i {
    color: var(--warning-color);
    font-size: 0.875rem;
}

/* ===== PROGRESS INDICATOR ===== */
.progress-indicator {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    transition: width 0.3s ease;
}

.question-counter {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 1rem;
}

/* ===== QUESTION OPTIONS ===== */
.qtn-options {
    background: var(--light-color);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qtn-options:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.qtn-options.selected {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.qtn-options.focus-bg {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.qtn-options input[type="radio"] {
    margin: 0;
}

.qtn-options label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

/* ===== ANSWER SUBMIT BUTTON ===== */
.ans_go {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ans_go:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    color: white;
}

/* ===== NAVIGATION BUTTONS ===== */
.prev-button, .next-button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.prev-button:hover, .next-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: white;
}

.prev-button:disabled, .next-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== MESSAGES ===== */
.success-message {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.time-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== AUTO-SAVE INDICATOR ===== */
.auto-save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-save-indicator.show {
    opacity: 1;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.welcome-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== PASSWORD TOGGLE ===== */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* ===== FORM VALIDATION ===== */
.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.validetta-inline {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== ENHANCED INPUT GROUPS ===== */
.input-group:focus-within .input-group-addon {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

/* ===== CHECKBOX STYLING ===== */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===== BUTTON STATES ===== */
.btn-labeled:active {
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-labeled:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== HIDE BUTTON ===== */
.hide_btn {
    display: none !important;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOOTER ===== */
.footer-base {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .login-section-wrap {
        padding: 1rem 0;
    }

    .panel-heading {
        padding: 1rem;
    }

    .panel-title {
        font-size: 1.25rem;
    }

    .panel-body {
        padding: 1.5rem;
    }

    .panel-footer {
        padding: 1rem;
    }

    .btn-labeled {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .reg-head {
        padding: 1.5rem;
        font-size: 1.5rem;
    }

    .well {
        padding: 1.5rem;
    }

    .btn-primary {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .exam-head {
        padding: 1rem;
    }

    .exam-head h3 {
        font-size: 1rem;
    }

    #countdowntimer {
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem;
    }

    .ques_details {
        padding: 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    /* MyAccount Responsive Styles */
    .account-page-cont {
        padding: 1.5rem !important;
    }

    .account-details {
        padding: 1.5rem !important;
    }

    .account-details .row {
        margin-bottom: 1rem !important;
    }

    .account-details p {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }

    .accordion-button {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }

    .accordion-body {
        padding: 1rem !important;
    }

    .stats-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ===== SELECT STYLING ===== */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* ===== TEXTAREA STYLING ===== */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ===== TEXT CENTER ===== */
.txt-center {
    text-align: center;
    margin-top: 2rem;
}

/* ===== SUBMIT BUTTON STYLING ===== */
.btn-primary {
    background: #092540;
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: #0a2d52;
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(9, 37, 64, 0.25);
}

/* ===== FORM LAYOUT ===== */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col-sm-4, .col-sm-6, .col-sm-12 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ===== EXAM QUESTION LAYOUT STYLES ===== */
.question-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.question-text {
    color: #0257b8;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.question-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-weight: 700;
    display: inline-block;
}

.options-container {
    margin: 2rem 0;
}

.exam-navigation-section {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.question-counter {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Enhanced button styles for exam navigation */
.exam-navigation-section .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.exam-navigation-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.exam-navigation-section .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== QUESTION NUMBER BLOCKS ===== */
.question-blocks-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
}

.question-blocks-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.question-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.question-block {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.question-block.attended {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    color: white;
    border-color: var(--success-color);
}

.question-block.attended:hover {
    transform: scale(1.1);
    box-shadow: 0 0.25rem 0.5rem rgba(25, 135, 84, 0.3);
}

.question-block.not-attended {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    color: var(--secondary-color);
    border-color: #dee2e6;
}

.question-block.not-attended:hover {
    transform: scale(1.1);
    box-shadow: 0 0.25rem 0.5rem rgba(108, 117, 125, 0.3);
}

.question-block.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.question-block.current:hover {
    transform: scale(1.1);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

.question-block-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.legend-color.attended {
    background: var(--success-color);
}

.legend-color.not-attended {
    background: var(--light-color);
}

.legend-color.current {
    background: var(--primary-color);
}
