﻿/* Login Page, OTP Modal, Login Mode Modal Styles */
:root {
    --primary-color: #1e90ff;
    --secondary-color: #104e8b;
    --google-btn-color: #4285f4;
    --card-bg: rgba(0, 0, 0, 0.7);
    --glow-color: rgba(30, 144, 255, 0.3);
    --accent-color: #f0f4f8;
    --error-color: #ff4d4d;
    --loader-color: #1e90ff;
    --progress-color: #28a745;
}

body {
    background-color: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: auto; /* Default to allow scrolling */
}

    body.loader-active {
        overflow: hidden; /* Prevent scrolling while loader is active */
    }

.h-100 {
    height: 100%;
}

.container-fluid {
    height: 100vh;
    overflow: auto; /* Allow scrolling after loader */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out; 
}

    .loader-overlay.hidden {
        opacity: 0;
        pointer-events: none; 
    }

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--loader-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

    .loader-ring.delay-1 {
        border-top-color: rgba(30, 144, 255, 0.7);
        animation-delay: -0.4s;
    }

    .loader-ring.delay-2 {
        border-top-color: rgba(30, 144, 255, 0.4);
        animation-delay: -0.8s;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
    transition: opacity 0.5s ease-out;
}

    .progress-bar-container.hidden {
        opacity: 0;
        pointer-events: none;
    }

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--progress-color), #2ecc71);
    animation: progress 4s ease-out forwards;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.login-card-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 360px;
    padding: 0.5rem;
}

.login-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 0 20px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 360px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

    .login-card.animate-form {
        animation: slideInRight 0.7s ease-out forwards;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--glow-color), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-image {
    height: 100%;
}

.object-fit-cover {
    object-fit: cover;
}

.form-control, .form-select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.85rem;
    background-color: #fff;
    color: #333;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.15rem rgba(30, 144, 255, 0.2);
        outline: none;
    }

.form-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-google {
    border: 1px solid var(--accent-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    color: #1f2937;
    background-color: var(--accent-color);
    transition: all 0.3s ease, transform 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(240, 244, 248, 0.5);
}

    .btn-google:hover {
        background-color: #e0e6eb;
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(240, 244, 248, 0.7);
    }

    .btn-google:active {
        transform: translateY(0);
        box-shadow: 0 0 5px rgba(240, 244, 248, 0.3);
    }

.animate-google {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.toggle-password {
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 77, 77, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.2rem;
    display: inline-block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.divider {
    position: relative;
    display: flex;
    align-items: center;
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .divider p {
        padding: 0 10px;
        font-size: 0.8rem;
        color: var(--accent-color);
    }

.navigation-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
}

.btn-nav {
    background: linear-gradient(135deg, #ffffff, #e6f0fa);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .btn-nav::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(30, 144, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
    }

    .btn-nav:hover::before {
        width: 200%;
        height: 200%;
    }

    .btn-nav:hover {
        transform: scale(1.15);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        color: #0a4d8c;
    }

    .btn-nav:active {
        transform: scale(0.95);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

@media (max-width: 992px) {
    .login-card-wrapper {
        padding: 0.25rem;
    }

    .login-card {
        border-radius: 10px;
        box-shadow: none;
    }

    .card-body {
        padding: 1.25rem;
    }

    .form-control, .form-select {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .input-group-text {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .btn-primary, .btn-google {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p.text-muted {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .login-card-wrapper {
        padding: 0.15rem;
    }

    .login-card {
        border-radius: 8px;
    }

    .card-body {
        padding: 0.75rem;
    }

    .form-control, .form-select {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    .form-label {
        font-size: 0.7rem;
    }

    .input-group-text {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    .btn-primary, .btn-google {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p.text-muted {
        font-size: 0.7rem;
    }

    .navigation-controls {
        bottom: 10px;
        left: 10px;
    }

    .btn-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* OTP Modal Styles */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.otp-modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.5s ease-out;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.otp-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e90ff, #0d6efd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(30, 144, 255, 0);
    }
}

.otp-icon-container i {
    font-size: 36px;
    color: white;
}

.otp-modal-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.otp-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.otp-mobile-display {
    color: #1e90ff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.otp-input {
    width: 55px;
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    caret-color: #1e90ff;
    outline: none;
}

    .otp-input:focus {
        border-color: #1e90ff;
        background: rgba(30, 144, 255, 0.1);
        box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
        transform: translateY(-2px);
    }

    .otp-input.filled {
        border-color: #00ff88;
        background: rgba(0, 255, 136, 0.05);
        animation: fillPulse 0.5s ease;
    }

@keyframes fillPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.otp-timer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.timer-text {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 16px;
}

.otp-loader {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #00ff88);
    border-radius: 0 0 20px 20px;
    animation: loaderProgress 5s linear forwards;
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Login Mode Link */
.login-mode-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

    .login-mode-link:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }

    .login-mode-link .badge {
        font-size: 11px;
        padding: 3px 8px;
    }

/* Login Mode Modal */
.login-mode-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.login-mode-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.login-mode-modal-header {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .login-mode-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.close-login-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .close-login-mode-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.login-mode-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.login-mode-modal-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #dee2e6;
}

/* Current Mode Display */
.current-mode-display h5 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.mode-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 5px solid;
}

    .mode-indicator.otp-mode {
        border-left-color: #3498db;
        background: linear-gradient(to right, #f0f8ff, #e8f4fc);
    }

    .mode-indicator.dev-mode {
        border-left-color: #2ecc71;
        background: linear-gradient(to right, #f0fff4, #e8fcf0);
    }

.mode-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.otp-mode .mode-icon {
    background: #3498db;
    color: white;
}

.dev-mode .mode-icon {
    background: #2ecc71;
    color: white;
}

.mode-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
}

.mode-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

    .mode-description i {
        margin-right: 5px;
    }

/* Mode Selection */
.mode-selection h5 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

    .mode-option:hover {
        border-color: #adb5bd;
        background: #f8f9fa;
    }

    .mode-option.selected {
        border-color: #3498db;
        background: #e3f2fd;
    }

.mode-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #495057;
}

.mode-option.selected .mode-option-icon {
    background: #3498db;
    color: white;
}

.mode-option-content {
    flex: 1;
}

    .mode-option-content h6 {
        margin: 0 0 5px 0;
        color: #333;
        font-weight: 600;
    }

    .mode-option-content p {
        margin: 0;
        color: #666;
        font-size: 13px;
    }

.mode-option-check {
    color: #28a745;
    font-size: 20px;
}

/* Passcode Section */
.passcode-section h5 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.passcode-section .form-control {
    border: 2px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

    .passcode-section .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

.passcode-section .alert {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

/* Info Section */
.info-section .alert {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

/* Scrollbar styling */
.login-mode-modal-body::-webkit-scrollbar {
    width: 8px;
}

.login-mode-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.login-mode-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .login-mode-modal-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .otp-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .otp-input {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }

    .otp-input-container {
        gap: 8px;
    }

    .login-mode-modal-content {
        width: 95%;
        margin: 10px;
    }

    .login-mode-modal-body {
        padding: 15px;
    }

    .mode-indicator {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .mode-option {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .mode-option-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .login-mode-modal-content {
        width: 95%;
        margin: 10px;
    }

    .login-mode-modal-body {
        padding: 15px;
    }

    .mode-indicator {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .mode-option {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .mode-option-icon {
        margin-bottom: 10px;
    }
}





















.modern-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1f 100%);
    padding: 40px 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(30, 144, 255, 0.2);
    overflow: hidden;
    animation: loaderAppear 0.5s ease-out;
}

@keyframes loaderAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.5));
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(30, 144, 255, 0.8));
    }
}

.loader-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        width: 100px;
        height: 100px;
        opacity: 0.5;
    }

    50% {
        width: 140px;
        height: 140px;
        opacity: 0.8;
    }
}

.loader-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    animation: textShimmer 2s linear infinite;
    background-size: 200% auto;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.loader-progress-container {
    width: 300px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e90ff, #00bfff, #1e90ff);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.05s linear;
    border-radius: 15px;
    animation: progressShimmer 2s linear infinite;
    position: relative;
    overflow: hidden;
}

    .loader-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.loader-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.loader-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    min-height: 24px;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Floating Particles */
.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(30, 144, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

    .particle:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        top: 70%;
        left: 20%;
        width: 6px;
        height: 6px;
        animation-delay: 0.5s;
    }

    .particle:nth-child(3) {
        top: 30%;
        right: 15%;
        width: 5px;
        height: 5px;
        animation-delay: 1s;
    }

    .particle:nth-child(4) {
        bottom: 25%;
        right: 25%;
        width: 3px;
        height: 3px;
        animation-delay: 1.5s;
    }

    .particle:nth-child(5) {
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        animation-delay: 2s;
    }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(10px, -10px);
        opacity: 0.6;
    }

    50% {
        transform: translate(20px, 0);
        opacity: 0.3;
    }

    75% {
        transform: translate(10px, 10px);
        opacity: 0.6;
    }
}

/* Loader Overlay Fade Out */
.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Hide original progress bar container */
.progress-bar-container {
    display: none !important;
}

/* Update existing loader overlay to work with new loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Responsive adjustments for loader */
@media (max-width: 768px) {
    .modern-loader {
        padding: 30px 40px;
        max-width: 90%;
    }

    .loader-logo-container {
        width: 100px;
        height: 100px;
    }

    .loader-logo-img {
        width: 80px;
        height: 80px;
    }

    .loader-text {
        font-size: 20px;
    }

    .loader-progress-container {
        width: 250px;
        height: 25px;
    }
}

@media (max-width: 576px) {
    .modern-loader {
        padding: 25px 30px;
    }

    .loader-logo-container {
        width: 80px;
        height: 80px;
    }

    .loader-logo-img {
        width: 65px;
        height: 65px;
    }

    .loader-text {
        font-size: 18px;
    }

    .loader-progress-container {
        width: 200px;
        height: 22px;
    }

    .loader-status {
        font-size: 14px;
    }
}