/* ========================================
   LOADER COMPONENT STYLES
   ======================================== */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 3rem 1rem;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(219, 170, 102, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loader variants */
.loader-spinner.loader-sm {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.loader-spinner.loader-lg {
    width: 80px;
    height: 80px;
    border-width: 5px;
}

/* Full page loader */
.loader-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-fullpage .loader-container {
    min-height: auto;
}

/* Section loader */
.section-loader {
    position: relative;
    min-height: 400px;
}

.section-loader .loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Error state */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 3rem 1rem;
    text-align: center;
}

.error-icon {
    width: 60px;
    height: 60px;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.error-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.error-retry {
    margin-top: 1rem;
}

/* Fade in animation for loaded content */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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