/* Modern Minimal Loading Animation */

.sleek-loader {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}

.sleek-loader div {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid #888;
    border-radius: 50%;
    animation: sleek-spin 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.sleek-loader div:nth-child(1) {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.sleek-loader div:nth-child(2) {
    width: 32px;
    height: 32px;
    top: 4px;
    left: 4px;
    animation-delay: -0.1s;
    border-top-color: #666;
}

.sleek-loader div:nth-child(3) {
    width: 24px;
    height: 24px;
    top: 8px;
    left: 8px;
    animation-delay: -0.2s;
    border-top-color: #444;
}

@keyframes sleek-spin {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

/* Loading container styling */
.sleek-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 200px;
}

.sleek-loading-text {
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Dark theme variant */
.dark-theme .sleek-loader div:nth-child(1) {
    border-top-color: #999;
}

.dark-theme .sleek-loader div:nth-child(2) {
    border-top-color: #777;
}

.dark-theme .sleek-loader div:nth-child(3) {
    border-top-color: #555;
}

.dark-theme .sleek-loading-text {
    color: #999;
}

/* Smaller variant for inline loading */
.sleek-loader-small {
    width: 20px;
    height: 20px;
}

.sleek-loader-small div:nth-child(1) {
    width: 20px;
    height: 20px;
}

.sleek-loader-small div:nth-child(2) {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
}

.sleek-loader-small div:nth-child(3) {
    width: 12px;
    height: 12px;
    top: 4px;
    left: 4px;
}

/* Fade in animation for loading container */
.sleek-loading-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}