﻿/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
    --maincolor: #03045E; /*#252641*/
    --maincolor-light: #363856;
    --maincolorlighthover: #aeafd0;
    --whitecolor: #ffffff;
    --dashboardbgcolor: #E7E9EE;
    --pagecolor: #F5F7FA;
    --placeholdercolor: #969696;
    --error: #F70F0F;
    --right: #43AA31;
    --mid-risk-error: #FFC107;
    --low-risk-error: #87CEEB;
    --completed: #43AA31;
    --pending: #ECBBBB;
    --upcoming: #E8ECBB;
    --overdue: #FFE5B4;
    --link: #1270B0;
    --nearblue: #0066cc;
    --submit-button: #096C13;
    --grey: #5B5B5B;
    --purple: #6141c7;
    --orange: #FCB045;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --success-green: #10B981;
    --bs-font-sans-serif: 'Poppins', sans-serif !important;
}

/* ========================================
   TYPOGRAPHY & FONT SETTINGS
   ======================================== */
/* Override Bootstrap's font settings */
body, .btn, .form-control, .form-select, .nav-link, .navbar-brand, h1, h2, h3, h4, h5, h6, p, span, div, a{
    font-family: var(--bs-font-sans-serif) !important;
    font-size: .875rem;
}

.fs-custom{
    font-size: .875rem !important;
}

/* ========================================
   FORM ELEMENTS & PLACEHOLDERS
   ======================================== */
/* Standard */
::placeholder {
    font-size: .8rem;
    color: var(--placeholdercolor);
}

/* Webkit browsers (Chrome, Safari, Opera) */
::-webkit-input-placeholder {
    font-size: .8rem;
    color: var(--placeholdercolor);
}

/* Mozilla Firefox 19+ */
::-moz-placeholder {
    font-size: .8rem;
    color: var(--placeholdercolor);
}


.form-select option:first-child[value=""] {
    font-size: .8rem;
    color: var(--placeholdercolor);
}
/* ========================================
   UTILITY CLASSES & COLOR HELPERS
   ======================================== */
.greylogo {
    color: var(--grey);
}

.maincolor {
    color: var(--maincolor) !important;
}

.sec-color {
    color: hsl(276, 100%, 70%);
}

.maincolorbg {
    background-color: var(--maincolor) !important;
}

.dashboardbgcolor {
    background-color: var(--dashboardbgcolor) !important;
}

.greycolor {
    background-color: var(--pagecolor);
}

.accentpurplebg{
    background-color: var(--accent-purple) !important;
}

thead.custom-thead-color th,
thead.custom-thead-color td {
    color: white;
    background-color: var(--maincolor);
}

thead.custom-thead-lightcolor th{
    color: var(--maincolor);
    background-color: var(--maincolorlighthover);
}


.purple{
    color: var(--purple) !important;
}

.purple-bg{
    background: var(--purple) !important;
}

.outline-purple {
    color: var(--purple) !important;
    background-color: transparent;
    border-color: var(--purple) !important;
}

    .outline-purple.active{
        color: var(--whitecolor) !important;
        background-color: var(--purple) !important;
        border-color: var(--purple) !important;
    }

    .outline-purple:hover{
        color: var(--whitecolor) !important;
        background-color: var(--purple) !important;
        border-color: var(--purple) !important;
    }

.orange{
    color: var(--orange) !important;
}

.orange-bg {
    background: var(--orange) !important;
}

.nearbluebg {
    background: var(--nearblue);
}

.subtle-lightblue-bg {
    background-color: lightblue !important;
    border: 1px solid var(--purple);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    padding: 1rem;
}


.gradient-bg {
    background: linear-gradient(135deg, #252641 0%, #DE8A58 100%);
}

.sec-gradient-bg {
    background: linear-gradient(135deg, #252641 0%, #252698 60%, #0022FF 100%);
}

.tertiary-gradient-bg {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
}

.fourth-gradient-bg {
    background: linear-gradient(90deg, #000851 0%, #1CB5E0 100%);
}

.fifth-gradient-bg {
    background: linear-gradient(90deg, #00d2ff 0%, #3a47d5 100%);
}

.sixth-gradient-bg {
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
}

.personal-info-card {
    background: #FFFAFF;
    background: radial-gradient(circle, rgba(255, 250, 255, 1) 0%, rgba(3, 4, 94, 1) 100%);
}

.bg-tertiary {
    background: #252641;
    background: linear-gradient(148deg, rgba(37, 38, 65, 1) 0%, rgba(131, 58, 180, 1) 50%, rgba(252, 176, 69, 1) 100%);
}


.quickstat-card {
    background: #fb8500 !important;
}

.quickstat-card2 {
    background: #136f63 !important;
}

.quickstat-card3 {
    background: #8ecae6 !important;
}

.welcomesecdadmin, .welcomesecteacher {
    background: #03045E !important;
}

.quickstat-card-admin1 {
    background: #023E8A !important;
}

.quickstat-card-admin2 {
    background: #0096C7 !important;
}

.quickstat-card-admin3 {
    background: #48CAE4 !important;
}

.border-maincolor{
    border: 1px solid var(--maincolor) !important;
}

.border-dashed {
    border: dashed !important;
}

.border-custom {
    border-image: linear-gradient(135deg, #252641 100%, #764ba2 0%) 1 !important;
}

.border-tertiary {
    border-top: 8px solid transparent !important;
    border-image: linear-gradient(82deg, rgba(20, 27, 134, 1) 0%, rgba(211, 160, 255, 1) 95%) 1 !important;
}

.gradient-text{
    color: #041340;
    background-image: linear-gradient(45deg, #041340 23%, #15C6D6 39%, #8F37B8 );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.textmain-gradient {
    color: #262541;
    background-image: linear-gradient(45deg, #262541 0%, #0c1264 50%, #020822 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-underline{
    text-decoration: underline;
}

.text-center{
    align-self: center !important;
}

/* Assessment Progress Bar Styles */
.assessment-progress-container {
    width: 120px;
    height: 6px;
    background: var(--dashboardbgcolor);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.assessment-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--nearblue), var(--maincolor));
    border-radius: 3px;
    transition: width 0.6s ease-in-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.assessment-progress-fill.completed {
    background: linear-gradient(90deg, var(--completed), var(--right));
}

.assessment-progress-fill.halfway {
    background: linear-gradient(90deg, var(--mid-risk-error), var(--orange));
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.assessment-progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

/* Saved Check Indicator Styles */
.saved-check-indicator {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 10;
    animation: slideInRight 0.3s ease-out;
}

.saved-check-indicator i {
    margin-right: 0.25rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.custom-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

    .custom-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #262451 10%, #313FF2);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

.poppins {
    font-family: 'Poppins', sans-serif;
}

.sans-serif {
    font-family: sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

form .form-control {
    font-size: 0.875rem !important;
}

.input-border{
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius:4px !important;
}

.input-border-left{
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0 4px 4px 0 !important;
}

.input-border:focus, .input-border-left:focus {
    border-color: var(--maincolor) !important;      /* Darker blue on focus */
    box-shadow: none !important;
}

.input-borderpass, .input-bordersearch {
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 4px 0 0 4px !important;
}

.input-borderpass:focus, .input-bordersearch:focus {
    border-color: var(--maincolor) !important; /* Darker blue on focus */
    box-shadow: none !important;
}

.input-bordertoggle {
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0 4px 4px 0 !important;
    background: var(--maincolor) !important;
}

.input-bordertoggle:hover{
    transition:none !important;
    transform: none !important;
}


.btn-primary{
    border-radius: 4px !important;
}

.btn-white{
    background: none !important;
}


.btn-search:hover{
    background: var(--maincolorlighthover)!important;
    color: var(--maincolor) !important;
}


.btn-outline-secondary:hover, .btn-outline-warning:hover, .btn-light:hover, .btn-outline-light:hover, .btn-secondary:hover, 
.btn-primary:hover, .btn-info:hover, .btn-warning:hover, .btn-outline-danger:hover, .btn-outline-success, .btn-success, .btn-danger,
.btn-white
{
    transform: none !important;
}

.btn-info:hover {
    background: #0bbae1 !important;
}

.btn-warning:hover {
    background: #ffb300 !important;
}
    .item:hover{
        background: lightgray !important;
    }

.border-radius{
    border-radius: 4px !important;
}


.d-sm-none{
    font-size: 0.875rem !important;
}

.back-arrow {
    background: var(--maincolor) !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .back-arrow:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
    }

.back-arrow i {
        font-size: 18px;
        color: var(--whitecolor);
    }

.rotate15{
    transform: rotate(15deg);
}

.rotateopp15{
    transform: rotate(-15deg);
}

dropdown-width{
    min-width: 100% !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #E0E2E9 !important;
    color: #333 !important;
}

.navbar-toggler{
    border: none !important;
}
    
    navbar-toggler:hover{
        border: none !important;
    }

.form-select:focus{
    border-color: var(--maincolor) !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.readonly-select {
    pointer-events: none;
    background-color: #e9ecef;
}

.page-flex-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-main-content {
    flex: 1 0 auto;
}

.pagination-footer {
    flex-shrink: 0;
    padding: 1rem 0;
    margin-left: 100px !important;
    margin-right: 50px !important;
}

/* ========================================
   LEGACY SIDEBAR STYLES (DEPRECATED)
   ======================================== */

.z-1020{
    z-index:1020 !important;
}

.z-1028{
    z-index: 1028 !important;
}
.z-1030{
    z-index: 1030 !important;
}

.z-1030{
    z-index: 1030 !important;
}
.z-9999{
    z-index: 9999 !important;
}

.w-300{
    width: 300px !important;
}

.w-250{
    width: 250px !important;
}

.h-60{
    height: 60px !important;
}

/* ========================================
   SIDEBAR STYLES - BOOTSTRAP OFFCANVAS
   ======================================== */
.offcanvas {
    background: var(--maincolor) !important;
    border: none !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.offcanvas-start {
    width: 300px !important;
}

.offcanvas-start-admin{
    width: 320px !important;
}

.offcanvas-header {
    background: var(--maincolor) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem !important;
    flex-shrink: 0 !important; /* Prevent header from shrinking */
}

.offcanvas-title {
    color: white !important;
    font-weight: bold !important;
    transition: opacity 0.3s ease !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

.offcanvas-body {
    background: var(--maincolor) !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    /* Enable scrolling for sidebar content */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100vh - 60px) !important; /* Subtract header height */
    flex: 1 !important;
}

/* Custom scrollbar for offcanvas body */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Collapsed sidebar states */
.offcanvas.collapsed {
    width: 70px !important;
}

.offcanvas.collapsed .offcanvas-title {
    opacity: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Navigation links in collapsed state */
.offcanvas.collapsed .nav-link {
    padding: 0.75rem 0.5rem !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

/* Icons in collapsed state - make sure they're visible */
.offcanvas.collapsed .nav-link i {
    margin: 0 !important;
    font-size: 1.2rem !important;
    color: white !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
}

/* Hide text content but keep icons */
.offcanvas.collapsed .nav-link span,
.offcanvas.collapsed .nav-link .me-2 {
    display: none !important;
}

.offcanvas.collapsed .nav-link {
    font-size: 0 !important;
}

.offcanvas.collapsed .nav-link i {
    font-size: 1.2rem !important;
}

/* Force icons to be visible - override any conflicting styles */
.offcanvas.collapsed .nav-link i.fas,
.offcanvas.collapsed .nav-link i.far,
.offcanvas.collapsed .nav-link i.fab {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Specific rule for FontAwesome icons in collapsed sidebar */
.offcanvas.collapsed .nav-link i[class*="fa-"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Hide section headers */
.offcanvas.collapsed .text-uppercase,
.offcanvas.collapsed .fw-bold {
    display: none !important;
}

.offcanvas.collapsed .offcanvas-body .p-4 {
    padding: 1rem 0.5rem !important;
}

.offcanvas.collapsed .mt-auto .p-3 {
    padding: 0.5rem !important;
}

/* User profile section in collapsed state */
.offcanvas.collapsed .d-flex.align-items-center {
    flex-direction: column !important;
    text-align: center !important;
    padding: 0.5rem !important;
}

.offcanvas.collapsed .d-flex.align-items-center .small {
    display: none !important;
}

/* Logout button styling - mobile and desktop */
.logout.btn-outline-light {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.2s ease !important;
}

.logout.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
}

/* Logout button in collapsed state */
.offcanvas.collapsed .btn-outline-light {
    padding: 0.5rem !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
}

.offcanvas.collapsed .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.offcanvas.collapsed .btn-outline-light i {
    margin: 0 !important;
    font-size: 1rem !important;
    color: white !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure logout button shows only icon */
.offcanvas.collapsed .btn-outline-light *:not(i) {
    display: none !important;
}

/* Main content styling */
.main-content, admin-main-content {
    transition: margin-left 0.3s ease-in-out;
    min-height: 100vh;
}

/* Enhanced nav-link styles for offcanvas */
.offcanvas .nav-link {
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.offcanvas .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.ml-10{
    margin-left: 0px;
}

.mx-300{
    max-width: 300px !important;
}

.mb-screen {
    height: 80px; 
    z-index: 1029;
}

.border-image {
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1 !important;
}

/* FOR HOMEPAGE STYLE*/
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-nav {
    gap: 2rem;
    margin-right: 0;
    align-items: center;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--maincolor) !important;
    margin-right: 0;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--maincolor) !important;
    font-weight: 500;
    transition: all 0.3s ease;  
}

    .nav-link:hover {
        background-color: lightgray !important;
    }

.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255,.6)), url('/images/bghome.png');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    position: relative;
    align-items: center;
    display: flex;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2c3e50;
    padding: 2rem 0;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--maincolor);
}

.hero-title {
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.overlap-container {
    position: relative;
    z-index: 10;
    margin-top: -6rem;
}

.login-card {
    margin: 0 auto;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    position: relative;
    z-index: 11;
}

    .login-card .card-body {
        padding: clamp(1.5rem, 3vw, 2.5rem);
        background: var(--whitecolor);
        border-radius: 20px;
        position: relative;
        z-index: 1;
    }

.login-icon {
    width: 60px;
    height: 60px;
    background: var(--maincolor) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.6s;
}

    .login-icon:hover {
        transform: translateX(-50%) rotateY(360deg);
    }

.btn-login {
    background: var(--maincolor);
    color: var(--whitecolor) !important;
    border: 1px solid #252641;
    display: inline-block;

    border-radius: 4px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

    .btn-login:hover {
        background-color: var(--maincolor);
        border: 1px solid #252641;
        box-shadow: 8px 8px 0 white, 8px 8px 0 1px #252641;
        transform: translate(2px, 2px);
        color: var(--whitecolor) !important;
        text-decoration: none;
    }

.btn-login:active {
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0 white, 4px 4px 0 1px #252641;
}

a.btn-login {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.info-section {
    padding: 4rem 0 0 0;
    margin-top: -12rem;
    position: relative;
    z-index: 1;
    min-height: 45vh;    
}


/* File viewer utilities moved from JS */
.pdf-canvas-responsive {
    max-width: 100%;
    height: auto;
}

.viewer-img-max-500 {
    max-height: 500px;
}

.viewer-max-h-400 {
    max-height: 400px;
}

    .info-section .fade-in {
        animation: fadeInUp 1s ease-out 0.5s both;
    }

.section-title {
    font-weight: 500;
    color: var(--maincolor);
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 3rem;
}

.info-text {
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.features-section {
    padding: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: none;
    height: 100%;
    transition: all 0.3s ease;
    text-align: justify;
    animation: fadeInUp 0.8s ease-out;
    border-top: 2rem solid var(--maincolor);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    .feature-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.4s;
    }

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maincolor);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-text {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

    .feature-list li {
        padding: 0.5rem 0;
        color: #555;
        position: relative;
        padding-left: 2rem;
        word-wrap: break-word;
    }

        .feature-list li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
            font-size: 1.2rem;
        }

.footer {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--maincolor-light) 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--success-green));
    }

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
    animation: fadeInUp 1s ease-out;
}

    .fade-in:nth-child(1) {
        animation-delay: 0.2s;
    }

    .fade-in:nth-child(2) {
        animation-delay: 0.4s;
    }

    .fade-in:nth-child(3) {
        animation-delay: 0.6s;
    }

.requirement-icon {
    font-size: 8px;
    margin-right: 8px;
    color: #dc3545;
}

.requirement-met {
    color: #28a745 !important;
}

    .requirement-met .requirement-icon {
        color: #28a745;
    }

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PASSWORD STRENGTH INDICATOR STYLES
   ======================================== */
.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

    .password-requirements .requirement {
        display: flex;
        align-items: center;
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
    }

        .password-requirements .requirement:last-child {
            margin-bottom: 0;
        }

        .password-requirements .requirement i {
            width: 16px;
            text-align: center;
        }

        .password-requirements .requirement small {
            color: #6c757d;
            font-weight: 500;
        }

/* ========================================
   ASSESSMENT SECURITY STYLES
   ======================================== */
/* Disable sidebar during system assessments */
.assessment-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #f8f9fa !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
}

.assessment-warning-banner {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    padding: 10px 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Hide sidebar elements during assessment */
.assessment-mode .offcanvas-start {
    display: none !important;
}

.assessment-mode .d-lg-none .btn[data-bs-toggle="offcanvas"] {
    display: none !important;
}

.assessment-mode .d-lg-none .dropdown {
    display: none !important;
}

.assessment-mode .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Disable navigation links during assessment */
.assessment-mode .nav-link {
    pointer-events: none !important;
    opacity: 0.5 !important;
}

/* Assessment submitted message styling */
.assessment-submitted-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.assessment-submitted-card {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.assessment-submitted-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/*LOGIN STYLE */

.bg-gradient-blue {
    background: linear-gradient(180deg,rgba(252, 253, 255, 1) 0%, rgba(211, 232, 255, 1) 50%, rgba(160, 205, 255, 1) 100%);
}

.logopanel {
    width: 100%;
    max-width: 450px;
    height: 450px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-custom {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

    .btn-custom:hover {
        background-color: #34495e;
        border-color: #34495e;
    }

.left-panel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    @media (min-width: 992px) {
        .left-panel-bg {
            position: static;
            width: auto;
            height: auto;
            z-index: auto;
        }
    }

.validation-message {
    max-width: 320px;
    display: block;
    white-space: normal;
    word-break: break-word;
    font-size: 0.95em;
}

/* SUBJECT STYLE*/

.subject-card {
    background-color: #ffffff;
    border-radius: 1.5rem; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08); 
    position: relative; 
    overflow: hidden;
}
    .subject-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 10px;
        background: linear-gradient(to right, #262451 60%, #D3A0FF);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
    border: 1px solid;
}

.status-completed {
    background-color: var(--completed);
    color: #155724;
    border-color: #c3e6cb;
}

.status-upcoming {
    background-color: var(--upcoming);
    color: #856404;
    border-color: #ffeaa7;
}

.status-pending {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.status-overdue {
    background-color: var(--overdue);
    color: #856404;
    border-color: #ffeaa7;
}

enroll-btn{
    border-radius: 4px !important;
}

    .enroll-btn:hover {
        transform: none !important;
        color: white;
    }

.view-assessment-btn, .assessment-btn {
    background-color: var(--maincolor) !important;
    color: white !important;
    border: none;
    border-radius: 4px !important;
}

    .view-assessment-btn:hover, .assessment-btn:hover {
        box-shadow: 0 0 10px rgba(37, 38, 65, 0.5);
        transform: scale(1.03) !important;
    }

.filter-dropdown {
    min-width: 250px;
}

.subject-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.teacher-info {
    color: #718096;
    font-size: 0.875rem;
}

.min-width-250 {
    min-width: 250px !important;
}


/*CALENDAR STYLES*/

.calendar-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .calendar-clickable:hover {
        background-color: #f8f9fa !important;
    }

.calendar-day {
    position: relative;
    min-height: 100px;
}

.calendar-week {
    border-bottom: 1px solid #dee2e6;
}

    .calendar-week:last-child {
        border-bottom: none;
    }

.assessment-item {
    margin-bottom: 0.25rem;
}

    .assessment-item:last-child {
        margin-bottom: 0;
    }

.calendar-header{
    width: 15px !important;
    height: 15px !important;
}

.other-month {
    color: #6c757d !important;
}

.today {
    background-color: #e3f2fd !important;
}

.assessment-badge {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assessment-subject {
    font-size: 0.6rem;
    color: #6c757d;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*PROGRESS TRACKER STYLE*/

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
}

.summary-header {
    color: white;
    padding: 25px;
    margin-bottom: 30px;
}

.subject-count {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}


/*NOTIFICATION STYLE*/

.alert-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border: none;
    overflow: hidden;
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.alert-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.alert-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}


.alert-date {
    color: #6c757d;
    font-size: 12px;
}

.dropdown-toggle::after {
    margin-left: 8px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-progress, .btn-mark {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border: none !important;
}

    .btn-progress:hover, .btn-mark {
        background: linear-gradient(135deg, #0056b3, #252641) !important;
        transform: none !important;
    }

.btn-check {
    color: #007bff !important;
    border-color: #007bff !important;
}


/* PERSONAL INFO STYLE*/

.profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.password-field {
    position: relative;
}


/* SUBJECT TEACHER SIDE*/

.status-button{
    background-color: none !important;
}

    .status-button:hover {
        transform: none !important;
        background-color: #a8bfe170 !important;
    }

/*PROGRESS TRACKER TEACHER SIDE*/
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container {
    position: relative !important;
    height: 250px;
}

.chart-container-lg {
    height: 300px;
}


/* Academic Structure Table Styles */
.academic-structure-table {
    border-collapse: separate;
    border-spacing: 0;
}

.academic-structure-table .table-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--maincolor);
}

.academic-structure-table .table-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #6c757d;
    margin-left: 20px;
}

.academic-structure-table .table-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.academic-structure-table .border-0 {
    border: none !important;
}

.academic-structure-table .grade-level-header {
    font-weight: 600;
    color: var(--maincolor);
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--maincolor);
}

.academic-structure-table .strand-header {
    font-weight: 500;
    color: #6c757d;
    padding: 8px 16px 8px 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #6c757d;
}

.academic-structure-table .section-row {
    transition: all 0.2s ease;
}

.academic-structure-table .section-row:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.academic-structure-table .section-name {
    font-weight: 500;
    color: #495057;
}

.academic-structure-table .no-strand-section {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    font-style: italic;
}

.academic-structure-table .no-strand-section .section-name {
    color: #856404;
}

/*Manage styles - Filter part*/
.filter-custom {
    min-width: 120px;
    max-width: 150px;
}
.status-button.active {
    background-color: var(--maincolor) !important;
    border-color: var(--maincolor) !important;
}
    .status-button:hover{
        background-color: var(--maincolorlighthover) !important;
        color: var(--maincolor) !important;
    }

/*Pagination styles*/
.pagination .page-item.active .page-link {
    background-color: var(--maincolor);
    border-color: var(--maincolor);
    color: #fff;
}

/* Disable active pagination styling - override with default appearance */
.pagination .page-item.active .page-link {
    background-color: var(--bs-pagination-bg) !important;
    border-color: var(--bs-pagination-border-color) !important;
    color: var(--bs-pagination-color) !important;
}

.pagination .page-item .page-link{
    color: var(--maincolor);
}
    .pagination .page-item .page-link:active {
        border-color: var(--maincolor);
        box-shadow: none;
        outline: none;
    }

    .pagination .page-item.active .page-link:hover,
    .pagination .page-item.active .page-link:focus {
        background-color: var(--maincolorlighthover);
        border-color: var(--maincolorlighthover);
        color: var(--maincolor);
    }

/*style for systemstat-card*/
.custom-systemstat-card {
    height: 300px !important;
    position: relative !important;
}
/*create assessment style*/
.selectable-card {
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    border-width: 2px !important;
}

    .selectable-card:hover, .selectable-card:focus {
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
        border-color: #0d6efd !important;
    }

    .selectable-card.active, .selectable-card[aria-pressed='true'] {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,.15);
        background: #f0f8ff;
    }

.animated-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--maincolor);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    border: none;
    overflow: hidden;
}

    .animated-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 60px;
        background: var(--maincolor);
        opacity: 0;
        transition: 0.5s;
    }

    .animated-btn::after {
        content: "";
        position: absolute;
        top: 10px;
        width: 100%;
        height: 100%;
        border-radius: 40px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        transition: 0.5s;
        filter: blur(15px);
        z-index: -1;
        opacity: 0;
    }

    .animated-btn:hover {
        width: 300px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.0);
    }

        .animated-btn:hover::before {
            opacity: 1;
        }

        .animated-btn:hover::after {
            opacity: 0.5;
        }

    .animated-btn i {
        transition: 0.5s;
        transition-delay: 0.25s;
        z-index: 2;
    }

    .animated-btn:hover i {
        transform: scale(0);
        color: #fff;
        transition-delay: 0s;
    }

.btn-text {
    position: absolute;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: scale(0);
    transition: 0.5s;
    transition-delay: 0s;
    z-index: 2;
    white-space: nowrap;
}

.animated-btn:hover .btn-text {
    transform: scale(1);
    transition-delay: 0.25s;
}

/* Alert notification styles */
.alert-notification {
    min-width: 300px;
}

/* Responsive for chat bubbles */
@media (max-width: 600px) {
    .chat-bubble-own, .chat-bubble-other {
        max-width: 90% !important;
        min-width: 100px !important;
    }
}

/*pass/fail chart in submission*/
#passFailChartModal {
    max-width: 250px;
    max-height: 120px;
    margin: 0 auto;
    display: block;
}
/* Assessment Timer Styles */
#timerDisplay {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

    #timerDisplay.bg-danger {
        animation: pulse 1s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Assessment Modal Improvements */
#assessmentStartModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#assessmentStartModal .modal-header {
    border-bottom: 2px solid #ffc107;
}

.attempt-warning .alert {
    border-left: 4px solid;
    margin-bottom: 0;
}

.attempt-warning .alert-warning {
    border-left-color: #ffc107;
}

.attempt-warning .alert-info {
    border-left-color: #0dcaf0;
}


/* Question Navigation Improvements */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Answer Input Enhancements */
.question-answer:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.question-answer.border-success {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.question-answer.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 400px;
}

/* Auto-submission Modal */
#autoSubmissionModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#autoSubmissionModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

/* Assessment Container Enhancements */
#assessmentMainUI {
    transition: opacity 0.3s ease;
}

    #assessmentMainUI.d-none {
        opacity: 0;
    }

/* Loading State Improvements */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Question Container Enhancements */
#questionContainer {
    min-height: 400px;
}

.question-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.question-content {
    line-height: 1.6;
}

.answer-options .form-check {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

    .answer-options .form-check:hover {
        background-color: #f8f9fa;
        border-color: #0d6efd;
    }

.answer-options .form-check-input:checked + .form-check-label {
    color: #0d6efd;
}

/* False Keyword Input Enhancement */
.false-keyword-input {
    border-left: 4px solid #ffc107;
}

/* Essay Textarea Enhancement */
textarea.question-answer {
    resize: vertical;
    min-height: 120px;
}

/* Navigation Footer Enhancement */
.card-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 2px solid #dee2e6;
}


/* Accessibility Improvements */
.question-answer:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.form-check-input:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn, .modal, .toast {
        display: none !important;
    }

    #assessmentMainUI {
        display: block !important;
    }
}

/* Progress Tracker Styles */
.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.subject-count {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.chart-card {
    background: white;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

    .chart-card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}


.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar-container .btn {
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-avatar-container .btn:hover {
    background-color: #f8f9fa;
}

/**Course Offering*/
.term-filter-btn {
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-right: 5px;
    min-width: 140px;
}

.term-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.term-filter-btn.active {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.term-filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-group .term-filter-btn:last-child {
    margin-right: 0;
}

.term-filter-btn .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#filter-summary {
    font-weight: 500;
    color: #6c757d;
}

.term-filter-btn.active #filter-summary {
    color: #0d6efd;
}

/* Teacher Subjects Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-right: 5px;
    min-width: 140px;
    font-weight: 500;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn.active {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-group .filter-btn:last-child {
    margin-right: 0;
}

.filter-btn .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/*Style in section tab academic structure*/
.cleanup-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

    .cleanup-actions .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.impact-summary {
    border: 1px solid #dee2e6;
}

.force-delete-section-btn {
    margin-right: 0.5rem;
}

/**/
/* Assessment Timer Styles */
#timerDisplay {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#timerDisplay.bg-danger {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Assessment Modal Improvements */
#assessmentStartModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#assessmentStartModal .modal-header {
    border-bottom: 2px solid #ffc107;
}

.attempt-warning .alert {
    border-left: 4px solid;
    margin-bottom: 0;
}

.attempt-warning .alert-warning {
    border-left-color: #ffc107;
}

.attempt-warning .alert-info {
    border-left-color: #0dcaf0;
}

/* Progress Bar Enhancements */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Question Navigation Improvements */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Answer Input Enhancements */
.question-answer:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.question-answer.border-success {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.question-answer.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Assessment Container Enhancements */
#assessmentMainUI {
    transition: opacity 0.3s ease;
}

#assessmentMainUI.d-none {
    opacity: 0;
}

/* Loading State Improvements */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Question Container Enhancements */
#questionContainer {
    min-height: 400px;
}

.question-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.question-content {
    line-height: 1;
}

/* Minimal styling for clickable options using Bootstrap */
.answer-options {
    margin-top: 1rem;
}

/* False Keyword Input Enhancement */
.false-keyword-input {
    border-left: 4px solid #ffc107;
}

/* Essay Textarea Enhancement */
textarea.question-answer {
    resize: vertical;
    min-height: 120px;
}

/* Navigation Footer Enhancement */
.card-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 2px solid #dee2e6;
}

/*image styling for the user profile*/
.user-profile-image {
    object-fit: cover;
    transition: transform 0.2s ease;
}

    .user-profile-image:hover {
        transform: scale(1.02);
    }

.user-image-placeholder {
    border: 2px dashed #dee2e6 !important;
}

.user-image-wrapper {
    position: relative;
    display: inline-block;
}


.help-btn-hover {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
}
    .help-btn-hover:hover {
        transform: rotate(35deg);
    }

/* File Preview Modal Styles */
#filePreviewModal .modal-dialog {
    max-width: 95vw;
}

#filePreviewModal .modal-body {
    min-height: 500px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
}

#filePreviewModal iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

#filePreviewModal img {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    max-width: 100%;
    height: auto;
}

#filePreviewModal pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.file-preview-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.file-type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.document-viewer-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.viewer-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewer-controls {
    display: flex;
    gap: 0.5rem;
}

.viewer-content {
    padding: 1rem;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#pdfCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== PAGINATION VISIBILITY STYLES ===== */
/* Hide pagination footer and spacer by default */
#subjectsPaginationFooter,
#subjectsPaginationSpacer {
    display: none;
}

/* Show pagination footer and spacer only when subjects tab is active */
#subjects.show.active ~ #subjectsPaginationFooter,
#subjects.show.active ~ #subjectsPaginationSpacer {
    display: block !important;
}

/* Alternative approach using tab button state */
#subjects-tab.active ~ * #subjectsPaginationFooter,
#subjects-tab.active ~ * #subjectsPaginationSpacer {
    display: block !important;
}

/* More reliable approach - show when subjects tab has both show and active classes */
.tab-content #subjects.show.active ~ #subjectsPaginationFooter,
.tab-content #subjects.show.active ~ #subjectsPaginationSpacer {
    display: block !important;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .user-profile-image,
    .user-image-placeholder {
        width: 120px !important;
        height: 120px !important;
    }

        .user-image-placeholder i {
            font-size: 3rem !important;
        }
}

@media (max-width: 576px) {
    .user-profile-image,
    .user-image-placeholder {
        width: 100px !important;
        height: 100px !important;
    }

        .user-image-placeholder i {
            font-size: 2.5rem !important;
        }
}

/* Better spacing on small screens */
@media (max-width: 767px) {
    #userDetailsModal .modal-body .row.g-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .user-profile-image,
    .user-image-placeholder {
        width: 100px !important;
        height: 100px !important;
    }

        .user-image-placeholder i {
            font-size: 2.5rem !important;
        }
}


/* Responsive Improvements */
@media (max-width: 768px) {
    .toast {
        min-width: 250px;
        right: 10px;
        left: 10px;
    }
    
    #timerDisplay {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .question-header h4 {
        font-size: 1.25rem;
    }
    
    .answer-options .form-check {
        padding: 0.75rem;

    }
}

/* Accessibility Improvements */
.question-answer:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.form-check-input:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn, .modal, .toast {
        display: none !important;
    }
    
    #assessmentMainUI {
        display: block !important;
    }
}

/* Profile Picture Viewer Modal - Higher z-index to appear above other modals */
.profile-picture-viewer-modal {
    z-index: 1060 !important;
}

.profile-picture-viewer-modal .modal-backdrop {
    z-index: 1059 !important;
} 



/* ===== MOBILE FIRST - BASE STYLES ===== */
/* Very small screens (≤ 320px) */
@media (max-width: 320px) {
    .status-badge {
        font-size: 9px;
        padding: 1px 4px;
    }

    .view-assessment-btn, .assessment-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem !important;
    }
}

/* Extra small screens (≤ 374px) */
@media (max-width: 374px) {
    .status-badge {
        font-size: 10px;
        padding: 2px 6px;
        white-space: nowrap;
    }

    .subject-card {
        padding: 0.5rem !important;
    }

    .view-assessment-btn, .assessment-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem !important;
    }

    .status-badges-container {
        gap: 0.125rem;
    }

    h5.fw-semibold {
        font-size: 1rem;
    }

    .text-muted.small {
        font-size: 0.75rem;
    }
}

/* Extra small screens (≤ 375px) */
@media (max-width: 375px) {
    .hero-content {
        padding: 0.5rem 1rem;
    }

    .overlap-container {
        margin-top: 3.5rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .info-section {
        margin-top: -8rem;
        padding: 1.5rem 0 2rem 0;
    }
}

/* Small screens (≤ 576px) */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 56px;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .overlap-container {
        margin-top: 3rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .login-card .card-body {
        padding: 1rem;
    }

    .feature-list li {
        white-space: normal;
        word-break: break-word;
    }

    .info-section {
        margin-top: -8rem;
        padding: 2rem 0 2rem 0;
        min-height: auto;
    }

    .filter-dropdown {
        min-width: 200px;
    }

    .subject-card {
        padding: 0.75rem !important;
    }

    .status-badges-container {
        justify-content: flex-start !important;
        gap: 0.25rem;
    }

    .view-assessment-btn, .assessment-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }

    .status-badge {
        padding: 4px 8px;
        white-space: nowrap;
    }

    .calendar-day {
        min-height: 70px !important;
    }

    .badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    .modal-dialog {
        margin: 1rem !important;
    }

    .alert-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .alert-title {
        font-size: 15px;
    }

    .alert-description {
        font-size: 13px;
    }
}

/* Small to Medium range (576px - 991.98px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .form-container-desktop {
        width: 75% !important;
    }
}

/* Medium screens (≤ 767px) */
@media (max-width: 767px) {
    #subjectsPaginationFooter {
        margin-left: 0;
    }
}

/* Medium screens (≤ 768px) */
@media (max-width: 768px) {
    .navbar-nav {
        gap: 1rem;
        margin-right: 1rem;
    }

    .navbar-brand {
        margin-right: 1.5rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 66px;
    }

    .hero-content {
        padding: 1.5rem 0;
    }

    .overlap-container {
        margin-top: -2rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .info-section {
        margin-top: -12rem;
        padding: 3rem 0 2rem 0;
    }

    .subject-card .card-body {
        padding: 1rem;
    }

    .status-badges-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .view-assessment-btn, .assessment-btn {
        margin-top: 0.75rem;
        font-size: 0.9rem;
    }

    .calendar-day {
        min-height: 80px !important;
    }

    .chart-container {
        height: 250px;
    }

    .summary-header {
        text-align: center;
        padding: 1.5rem;
    }

    .subject-count {
        font-size: 2.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .chart-container, .chart-container-lg {
        height: 300px;
    }

    .toast {
        min-width: 250px;
        right: 10px;
        left: 10px;
    }

    #timerDisplay {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .question-header h4 {
        font-size: 1.25rem;
    }

    .answer-options .form-check {
        padding: 0.75rem;
    }

    .term-filter-btn {
        min-width: auto;
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

        .term-filter-btn .badge {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
}

/* Medium to Large range (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 70px;
    }

    .hero-content {
        padding: 1.5rem 0;
    }

    .overlap-container {
        margin-top: 2rem;
    }

    .hero-subtitle {
        margin-bottom: 2.5rem;
        font-size: 0.95rem;
    }
}

/* Tablet range (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        min-height: 50vh;
        padding-top: 70px;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .overlap-container {
        margin-top: 3rem;
    }

    .hero-subtitle {
        margin-bottom: 3rem;
        font-size: 1rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .info-section {
        margin-top: -8rem;
        padding: 1rem 0 0 0;
        min-height: auto;
        margin-bottom: 0;
    }

    .features-section {
        padding: 3rem 0;
    }
}

/* Large screens (≤ 991px) */
@media (max-width: 991px) {
    .mobile-header-image {
        max-width: 100px;
        height: auto;
        margin-bottom: 1rem;
    }

    .form-container-desktop {
        width: 100% !important;
    }
}

/* Large screens (≤ 991.98px) */
@media (max-width: 991.98px) {

    .main-content, .admin-main-content {
        margin-top: 4.75rem;
        margin-left: 0px;
    }



    .navbar-collapse {
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0;
        margin-left: .5rem;
    }

    .logopanel img {
        max-width: 720px;
        width: 100vw;
        height: auto;
        opacity: 0.18;
        filter: brightness(1.8);
        pointer-events: none;
        user-select: none;
        display: block;
        margin: 0 auto;
    }

    .left-panel-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
    }

    .logopanel {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: 100vh;
        position: relative;
    }
}

/* ===== DESKTOP STYLES ===== */
/* Medium screens (≥ 768px) */
@media (min-width: 768px) {
    #subjectsPaginationFooter {
        margin-left: 250px;
    }
}

/* Large screens (≥ 992px) */
@media (min-width: 992px) {

    .main-content {
        margin-left: 250px;
    }

    .admin-main-content {
        margin-left: 20px !important;
    }

    .form-container-desktop {
        width: 50% !important;
    }
}

/* Extra large screens (≥ 1200px) - Force offcanvas to behave as regular sidebar */
@media (min-width: 1200px) {
    /* Desktop: Convert offcanvas to regular sidebar */
    .offcanvas {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 300px !important;
        max-width: 300px !important;
        transform: none !important;
        visibility: visible !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        /* Remove all Bootstrap offcanvas behavior */
        transition: none !important;
        background: var(--maincolor) !important;
        border: none !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
        /* Override Bootstrap offcanvas classes */
        transform: translateX(0) !important;
        transition: none !important;
    }
    
    /* Disable Bootstrap offcanvas backdrop on large screens */
    .offcanvas-backdrop {
        display: none !important;
    }
    
    /* Ensure main content is properly positioned */
    .main-content {
        margin-left: 300px !important;
        transition: margin-left 0.3s ease !important;
    }
    
    .offcanvas-start-admin {
        width: 320px !important;
        max-width: 320px !important;
    }
    
    /* Re-enable pointer events for interactive elements inside offcanvas */
    .offcanvas .nav-link,
    .offcanvas .btn,
    .offcanvas .dropdown-toggle,
    .offcanvas .dropdown-menu,
    .offcanvas .offcanvas-header,
    .offcanvas .offcanvas-body,
    .offcanvas * {
        pointer-events: auto !important;
    }
    
    /* Ensure offcanvas doesn't interfere with main content */
    .offcanvas::before,
    .offcanvas::after {
        display: none !important;
    }
    

    .offcanvas-backdrop {
        display: none !important;
    }

    /* Adjust main content for offcanvas sidebars */
    .main-content {
        margin-left: 300px !important;
        transition: margin-left 0.3s ease !important;
    }


    /* Adjust main content when sidebar is collapsed */
    .offcanvas.collapsed ~ .main-content {
        margin-left: 70px !important;
    }

    .offcanvas.collapsed ~ .admin-main-content {
        margin-left: 90px !important
    }
}

/* Extra large screens (≥ 1025px) */
@media (min-width: 1025px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 2.5rem;
    }

    .hero-content {
        padding: 3rem 0;
    }

    .overlap-container {
        margin-top: -6rem;
    }

    .hero-subtitle {
        margin-bottom: 4rem;
        font-size: 1.1rem;
    }
}

/* Additional notification layout improvements */
.alert-card .row {
    align-items: flex-start;
}

.alert-card .alert-description {
    max-width: 100%;
    overflow: hidden;
    word-break: break-word; /* Added for better word breaking */
    hyphens: auto;
    line-height: 1.5; /* Improved line height */
}

.alert-card .action-buttons {
    position: relative;
    z-index: 1;
    min-width: max-content;
}

/* Ensure proper spacing between text and buttons */
.alert-card .col-lg-8,
.alert-card .col-xl-9 {
    padding-right: 15px;
}

.alert-card .col-lg-4,
.alert-card .col-xl-3 {
    padding-left: 15px;
}

/* Ensure mobile responsiveness */
@media (max-width: 767.98px) {
    .alert-card .action-buttons {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .alert-card .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Predictive Analytics Styles */
.scenario-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.scenario-card.easy {
    border-color: #28a745 !important;
}

.scenario-card.moderate {
    border-color: #ffc107 !important;
}

.scenario-card.challenging {
    border-color: #dc3545 !important;
}

.scenario-card.achievable {
    border-color: #17a2b8 !important;
}

.metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.metric-card.border-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.metric-card.border-info {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
}

.metric-card.border-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.metric-card.border-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.metric-card.border-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.difficulty-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
}

.recommendation-alert i {
    color: #1976d2;
}

/* Responsive adjustments for predictive analytics */
@media (max-width: 767.98px) {
    .scenario-card {
        margin-bottom: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .predictive-analytics-card .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .predictive-analytics-card .col-md-6,
    .predictive-analytics-card .col-lg-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== ENHANCED HERO SECTION ANIMATIONS ===== */
.hero-section {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    animation: heroSectionEntrance 1.5s ease-out 0.3s forwards;
}

.hero-section.loaded {
    opacity: 1;
}

@keyframes heroSectionEntrance {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating background elements animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
    transform: translateZ(-10px);
    opacity: 0;
    animation-delay: 1s;
}

.hero-section.loaded::before {
    opacity: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 38, 65, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(222, 138, 88, 0.1) 0%, transparent 50%);
    animation: subtleGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
    transform: translateZ(-5px);
    opacity: 0;
    animation-delay: 1.5s;
}

.hero-section.loaded::after {
    opacity: 1;
}

/* Gentle parallax effect on scroll */
.hero-section.parallax-active {
    background-position: center calc(50% + var(--scroll-offset, 0px));
}

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) translateZ(-10px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) rotate(1deg) translateZ(-10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px) rotate(-1deg) translateZ(-10px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg) translateZ(-10px);
        opacity: 0.6;
    }
}

@keyframes subtleGlow {
    0% {
        opacity: 0.3;
        transform: scale(1) translateZ(-5px);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05) translateZ(-5px);
    }
}

.hero-content {
    z-index: 2;
    transform: translateZ(0);
}

.hero-title {
    animation: heroTitleEntrance 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maincolor), var(--nearblue));
    transform: translateX(-50%);
    animation: titleUnderline 1.5s ease-out 0.8s forwards;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(37, 38, 65, 0.3);
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nearblue), var(--maincolor));
    transform: translateX(-50%);
    animation: titleTopLine 1.5s ease-out 1s forwards;
    border-radius: 1px;
    opacity: 0.7;
}

@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleUnderline {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80%;
        opacity: 1;
    }
}

@keyframes titleTopLine {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60%;
        opacity: 0.7;
    }
}

.hero-subtitle {
    animation: heroSubtitleEntrance 1s ease-out 0.5s both;
}

@keyframes heroSubtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overlap-container {
    animation: cardFloat 2s ease-out 1s both;
}

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: cardEntrance 1s ease-out 1.2s both;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.login-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 38, 65, 0.05) 0%, 
        rgba(222, 138, 88, 0.05) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.login-card:hover::before {
    opacity: 1;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.login-card .card-body {
    background: transparent;
}

.login-icon {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: iconBounce 1s ease-out 1.5s both;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.login-icon:hover {
    transform: translateX(-50%) rotateY(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0) rotate(180deg);
    }
    50% {
        transform: translateX(-50%) scale(1.2) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
}

.btn-login {
    background: linear-gradient(135deg, var(--maincolor), #34495e);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 38, 65, 0.3);
}

/* Apply entrance animation only on homepage hero section */
.hero-section .btn-login {
    animation: buttonEntrance 1s ease-out 1.8s both;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #34495e, var(--maincolor));
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced floating particles effect */
.hero-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: particlesEntrance 2s ease-out 2s forwards;
}

.hero-section.loaded .floating-particles {
    opacity: 1;
}

@keyframes particlesEntrance {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-section .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.hero-section .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-section .particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.hero-section .particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.hero-section .particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 11s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Loading state animations */
.hero-section.loading {
    background: linear-gradient(135deg, rgba(255, 255, 255,.8), rgba(255, 255, 255,.6));
}

.hero-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(37, 38, 65, 0.3);
    border-top: 3px solid var(--maincolor);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .hero-title::after {
        width: 60%;
    }
    
    .hero-title::before {
        width: 40%;
    }
    
    .login-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .particle {
        display: none;
    }
    
    .hero-section::before,
    .hero-section::after {
        animation-duration: 30s;
    }
    
    .hero-section {
        animation-duration: 1s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-section::after,
    .hero-title,
    .hero-subtitle,
    .overlap-container,
    .login-card,
    .login-icon,
    .btn-login,
    .particle {
        animation: none;
        transition: none;
    }
    
    .hero-title::after,
    .hero-title::before {
        width: 80%;
        opacity: 1;
    }
    
    .hero-section {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   CLICKABLE OPTION STYLES - Bootstrap-based
   ======================================== */
.clickable-option {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.clickable-option:hover {
    background-color: var(--bs-gray-50);
    border-color: var(--bs-primary);
}

.clickable-option:has(.form-check-input:checked) {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
}

.clickable-option:has(.form-check-input:disabled) {
    cursor: default;
    opacity: 0.65;
}

.clickable-option:has(.form-check-input:disabled):hover {
    background-color: transparent;
    border-color: var(--bs-border-color);
}

.clickable-option .form-check-label {
    user-select: none;
    pointer-events: none;
}

.clickable-option .form-check-input {
    pointer-events: auto;
}

/* ========================================
   QUESTION NAVIGATION PANEL STYLES
   ======================================== */
.question-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background-color: #ffffff;
    color: var(--maincolor);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.question-nav-btn:hover {
    border-color: var(--maincolor);
    color: var(--maincolor);
    background-color: #f8f9fa;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-nav-btn.current {
    background-color: var(--maincolor);
    border-color: var(--maincolor);
    color: white;
    box-shadow: 0 2px 8px rgba(3, 4, 94, 0.3);
}

.question-nav-btn.answered {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.question-nav-btn.answered:hover {
    background-color: #0d9668;
    border-color: #0d9668;
    color: white;
}

.question-nav-btn.skipped {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.question-nav-btn.skipped:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

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

.question-nav-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Question navigation panel responsive adjustments */
@media (max-width: 768px) {
    .question-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    #questionNavigation {
        justify-content: center;
    }
}

/* Animation for question navigation */
@keyframes questionNavPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.question-nav-btn.current {
    animation: questionNavPulse 0.6s ease-in-out;
}




