﻿.bg-Header { color: #fff; padding-top: 5px !important; padding-bottom: 5px !important;}
.bg-Header .nav-link { color: #fff !important; }

.bg-main{ background-color: #00a12a !important; color:#fff}
.btn-default { background-color: #ff3547 !important; }

.bg-footer { background-color: #00a12a !important; }
#toTop { position: fixed; bottom: 10px; right: 10px; cursor: pointer; display: none; }

/* Modern Login Modal Styles */
.modern-login-modal {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: none;
    background: #2c3e50;
}

.modern-modal-header {
    background: linear-gradient(135deg, #00c851 0%, #007E33 100%);
    color: #fff;
    border: none;
    padding: 25px 30px;
    border-radius: 0;
}

.modern-modal-header .title {
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    letter-spacing: 0.5px;
}

.modern-modal-header .close {
    color: #fff;
    opacity: 0.9;
    font-size: 28px;
    text-shadow: none;
}

.modern-modal-header .close:hover {
    opacity: 1;
}

.modern-modal-body {
    padding: 40px 35px;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    position: relative;
    min-height: 300px;
}

.modern-form-group {
    margin-bottom: 25px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #00c851;
    font-size: 18px;
    z-index: 1;
}

.modern-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #4a5f7f;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #3d5568;
    color: #fff;
    outline: none;
}

.modern-input:focus {
    border-color: #00c851;
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.2);
    background-color: #4a5f7f;
}

.modern-input::placeholder {
    color: #95a5a6;
}

.modern-login-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00c851 0%, #00a32a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.modern-login-btn:hover {
    background: linear-gradient(135deg, #00a32a 0%, #007E33 100%);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
    transform: translateY(-2px);
}

.modern-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 200, 81, 0.3);
}

/* Error message styles */
.alert-danger {
    background: #2c1f1f;
    border-left: 4px solid #f44336;
    color: #ff6b6b !important;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.alert-danger:empty {
    display: none !important;
}

.Error {
    color: #ff6b6b !important;
    font-size: 14px;
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #2c1f1f;
    border-radius: 6px;
    border-left: 3px solid #f44336;
}

.Error:empty {
    display: none !important;
}

/* Loading Animation Styles */
.login-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 15px 15px;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Animation */
.logo-container {
    position: relative;
    text-align: center;
    animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.sikkhaloy-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
    }
}

/* Circular Loading Ring */
.loading-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-ring-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: ringRotate 1.5s linear infinite;
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 85%;
    top: 30%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 20%;
    top: 70%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    left: 80%;
    top: 65%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 15%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #ffeb3b, #fff);
    background-size: 200% 100%;
    animation: progressMove 1.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressMove {
    0% {
        width: 0%;
        background-position: 0% 0%;
    }
    50% {
        width: 70%;
        background-position: 100% 0%;
    }
    100% {
        width: 100%;
        background-position: 200% 0%;
    }
}

/* Loading Text */
.loading-text {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: textFade 1.5s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.6;
    }
}

/* Loading Dots */
.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #fff;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Remove old animations */
.road,
.road-lines,
.car,
.car-moving,
.school-building {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modern-modal-body {
        padding: 30px 20px;
    }
    
    .modern-modal-header {
        padding: 20px 20px;
    }
    
    .modern-modal-header .title {
        font-size: 20px;
    }
    
    .animation-container {
        height: 200px;
    }
    
    .sikkhaloy-logo {
        width: 150px;
    }
    
    .loading-ring {
        width: 180px;
        height: 180px;
    }
    
    .progress-bar-container {
        width: 150px;
        bottom: 50px;
    }
    
    .loading-text {
        font-size: 16px;
        bottom: 20px;
    }
}

@media (max-width: 400px) {
    .sikkhaloy-logo {
        width: 120px;
    }
    
    .loading-ring {
        width: 150px;
        height: 150px;
    }
    
    .progress-bar-container {
        width: 120px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}