/* button css start  */
.btn {
    min-height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: var(--FontSizeSmall);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    user-select: none;
    position: relative;
}

.btn-theme {
    background: var(--ColorPrimary);
    color: var(--ColorLightPrimary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    position: relative;
    box-shadow: var(--BoxShadow) !important;
    z-index: 2; /* ensures even bare text stays above ripple */
    border: 1px solid var(--ColorPrimary);
}
.btn-theme-secondary {
    background: var(--ColorLightPrimary);
    color: var(--ColorPrimary);
    border: 1px solid var(--ColorPrimary);
}

.btn-theme:hover {
    color: var(--ColorPrimary);
    background: var(--ColorLightPrimary);
    border: 1px solid var(--ColorPrimary) !important;
}

.btn-theme:focus {
    outline: none !important;
    box-shadow: var(--BoxShadow);
}

.btn-theme:active {
    box-shadow: var(--BoxShadow);
}

/* Ensure ripple children & direct text above ripple */
.btn-theme,
.btn-theme * {
    position: relative;
    z-index: 2;
}

/* Ripple effect */
.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--ColorPrimary);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1; /* always behind the content */
    opacity: 0;
}

/* Ripple animation when active */
.ripple:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Ripple animation class for after click release */
.ripple.ripple-animating::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Ripple shrinking animation */
.ripple.ripple-shrinking::before {
    width: 0;
    height: 0;
    opacity: 0;
}

/* CRITICAL FIX: Override hover state during active ripple */
.btn-theme.ripple:active,
.btn-theme.ripple:active *,
.ripple:active,
.ripple:active * {
    color: var(--ColorLightPrimary) !important;
    transition: color 0.3s ease-in-out !important;
}

/* button css end  */




.hero-section {
        background: var(--ColorPrimary);
        padding: 80px 0;
        color: white;
        position: relative;
        overflow: hidden;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-title {
        font-size: var(--FontSizeUltraLarge);
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .hero-subtitle {
        font-size: var(--FontSizeNormal);
        opacity: 0.9;
        margin-bottom: 2rem;
        font-weight: 300;
        color: var(--ColorLightPrimary);
    }

    .exam-grid {
        padding: 30px;
    }

    .exam-card {
        background: var(--ColorLightPrimary);
        border-radius: 15px;
        box-shadow: var(--BoxShadow);
        transition: all 0.3s ease;
        height: 100%;
        border: 1px solid var(--ColorMix);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .exam-card:hover {
        box-shadow: var(--BoxShadowHover);
        border-color: var(--ColorPrimary);
    }

    .exam-header {
        background: var(--ColorPrimary);
        padding: 20px;
        border-bottom: 1px solid var(--ColorMix);
    }

    .exam-title {
        font-size: var(--FontSizeNormal);
        font-weight: 600;
        color: var(--ColorLightPrimary);
        margin: 0;
    }

    .exam-body {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }



    .exam-footer {
        padding: 20px;
        background: var(--ColorPrimary);
        border-top: 1px solid var(--ColorMix);
    }

    /* Redesigned exam details list */
    .exam-details {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .exam-detail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--ColorPrimary);
        color: var(--ColorLightPrimary);
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 0.9rem;
        line-height: 1.2;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        white-space: nowrap;
        flex-grow: 1;
    }

    .exam-detail .label { 
        opacity: 0.95; 
    }
    .exam-detail .value { 
        font-weight: 600; 
    }

    .apply-btn {
        background: var(--ColorPrimary);
        border: none;
        color: var(--ColorLightPrimary);
        padding: 12px 30px;
        border-radius: 25px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .apply-btn::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.5s;
    }

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

    .apply-btn:hover {
        color: var(--ColorPrimary);
        background: var(--ColorLightPrimary);
    }

    .apply-btn:disabled {
        background: var(--ColorLightSecondary);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

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

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: var(--ColorLightSecondary);
    }

    .empty-icon {
        font-size: 4rem;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .stats-section {
        background: var(--ColorLightPrimary);
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .stat-card {
        text-align: center;
        padding: 30px 20px;
        border-radius: 15px;
        background: var(--ColorPrimary);
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        box-shadow: var(--BoxShadowHover);
    }

    .stat-number {
        font-size: var(--FontSizeExtraLarge);
        font-weight: 700;
        color: var(--ColorPrimary);
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: var(--FontSizeSmall);
        color: var(--ColorDarkSecondary);
        font-weight: 500;
    }

    .exam-additional-info {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--ColorMix);
    }

    .exam-additional-info small {
        font-size: var(--FontSizeExtraSmall);
        line-height: 1.4;
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        
        .exam-grid {
            padding: 20px;
        }
    }

/* ==================== EXAM PAGE STYLES ==================== */

/* Exam Instruction Section */
.exam-instruction-section {
    background: linear-gradient(135deg, var(--ColorPrimary) 0%, #c82333 100%);
    padding: 60px 0;
    color: var(--ColorLightPrimary);
    position: relative;
    overflow: hidden;
}

.exam-instruction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.exam-instruction-section .container {
    position: relative;
    z-index: 3;
}

.instruction-content {
    position: relative;
    z-index: 2;
}

.exam-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.exam-title {
    font-size: var(--FontSizeExtraLarge);
    font-weight: 700;
    color: var(--ColorLightPrimary);
}

.exam-stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: var(--FontSizeLarge);
    font-weight: 700;
    margin-bottom: 5px;
    color: white !important;
}

.stat-label {
    font-size: var(--FontSizeSmall);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
}

/* Action Section */
.action-section {
    background: linear-gradient(135deg, var(--ColorPrimary) 0%, #c82333 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.action-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.action-section .container {
    position: relative;
    z-index: 2;
}

/* Action Cards */
.action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ColorPrimary), #c82333);
}

.action-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.action-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--ColorLightPrimary);
    position: relative;
    overflow: hidden;
}

.action-card-success .action-card-icon {
    background: var(--ColorPrimary);
}

.action-card-warning .action-card-icon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.action-card-info .action-card-icon {
    background: var(--ColorPrimary);
}

.action-card-danger .action-card-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.action-card-content h3 {
    color: #2c3e50 !important;
    font-size: var(--FontSizeLarge);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-card-content p {
    color: #6c757d !important;
    font-size: var(--FontSizeNormal);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.action-card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-card-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    background: var(--ColorPrimary);
    border: 2px solid var(--ColorPrimary);
    color: var(--ColorLightPrimary);
    font-size: var(--FontSizeSmall);
}

.action-card-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-card-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-card-buttons .btn:hover {
    box-shadow: var(--BoxShadowHover);
    background: #c82333;
}

/* ========================================
   COMMON FORM STYLES
   ======================================== */

/* Form Container */
.form-wrapper {
    background: var(--ColorLightPrimary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--BoxShadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    color: var(--ColorPrimary);
    font-size: var(--FontSizeLarge);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--ColorDarkSecondary);
    font-size: var(--FontSizeSmall);
    margin-bottom: 0;
}

/* Form Labels */
.form-label {
    color: var(--ColorDarkPrimary);
    font-weight: 600;
    font-size: var(--FontSizeSmall);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--ColorPrimary);
    width: 16px;
}

/* Form Controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: var(--FontSizeSmall);
    transition: all 0.3s ease;
    background: var(--ColorLightPrimary);
}

.form-control:focus {
    border-color: var(--ColorPrimary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: var(--ColorLightPrimary);
}

/* Form Hints */


/* ========================================
   AUTHENTICATION SPECIFIC STYLES
   ======================================== */

/* Auth Form Wrapper (extends form-wrapper) */
.auth-form-wrapper {
    background: var(--ColorLightPrimary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--BoxShadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth Form Header (extends form-header) */
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Auth Title (extends form-title) */
.auth-title {
    color: var(--ColorPrimary);
    font-size: var(--FontSizeLarge);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Auth Subtitle (extends form-subtitle) */
.auth-subtitle {
    color: var(--ColorDarkSecondary);
    font-size: var(--FontSizeSmall);
    margin-bottom: 0;
}

/* Auth Footer (extends form-footer) */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Auth Note (extends form-note) */
.auth-note {
    color: var(--ColorDarkSecondary);
    font-size: var(--FontSizeExtraSmall);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-note i {
    color: var(--ColorPrimary);
}

/* Custom Tab Styling for Card Header */
.nav-tabs-custom {
    border-bottom: none;
    margin-bottom: 0;
}

.nav-tabs-custom .nav-link {
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--ColorLightPrimary);
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.nav-tabs-custom .nav-link.active {
    color: var(--ColorLightPrimary);
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.nav-tabs-custom .nav-link.active:hover {
    color: var(--ColorLightPrimary);
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   MODAL FORM STYLES
   ======================================== */

/* Modal Container */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--ColorPrimary);
    color: var(--ColorLightPrimary);
    border-bottom: none;
    padding: 25px 30px;
}

.modal-title {
    font-weight: 600;
    font-size: var(--FontSizeLarge);
}

.modal-body {
    padding: 30px;
}

/* Modal Form Controls */
.modal-body .form-label {
    font-weight: 600;
    color: var(--ColorDarkPrimary);
    margin-bottom: 8px;
}

.modal-body .form-control {
    border-radius: 10px;
    border: 2px solid var(--ColorMix);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--ColorPrimary);
    box-shadow: 0 0 0 0.2rem rgba(232, 33, 38, 0.25);
}

/* Modal Buttons */
.modal-body .btn-primary {
    background: var(--ColorPrimary);
    border: 2px solid var(--ColorPrimary);
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-body .btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    box-shadow: 0 10px 25px rgba(232, 33, 38, 0.3);
}

.modal-body .btn-link {
    color: var(--ColorPrimary);
    text-decoration: none;
    font-weight: 500;
}

.modal-body .btn-link:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Responsive Design for Exam Page */
@media (max-width: 768px) {
    .exam-title {
        font-size: var(--FontSizeLarge);
    }
    
    .exam-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instruction-body {
        padding: 20px;
    }
    
    .action-card {
        padding: 30px 20px;
        margin: 15px 0;
    }
    
    .action-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .action-card-content h3 {
        font-size: var(--FontSizeNormal);
    }
    
    .action-card-content p {
        font-size: var(--FontSizeSmall);
    }
    
    .action-card-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-card-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .nav-tabs-custom .nav-link {
        padding: 12px 15px;
        font-size: var(--FontSizeSmall);
    }
}