/* Glass effect for cards */
.bg-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Dark mode styling */
.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

.transition-smooth {
    transition: all 0.5s ease-in-out;
}

/* Loader styling */
#loader {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background: #1e3a8a;
    color:white;
    flex-direction: column;
    z-index: 50;
}

#loader img {
    width: 150px;
    margin-bottom: 20px;
}

#loader p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade-out loader effect */
.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}
