/**
 * Enhanced Loading States & Skeleton Loaders
 * Modern, beautiful, and fully responsive loading UI components
 * 
 * Features:
 * - Skeleton loaders with smooth shimmer effects
 * - Modern button loading states with spinners
 * - Beautiful form submission overlays
 * - Page loading with progress indicators
 * - Responsive success/error messages with icons
 * - Smooth animations and transitions
 * - Fully responsive for mobile, tablet, desktop
 * - Accessible (respects prefers-reduced-motion)
 * - Dark mode support
 */

/* ====================================
   1. KEYFRAME ANIMATIONS
   ==================================== */

/* Enhanced shimmer animation with smooth gradient */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0.7;
    }
}

/* Pulse glow animation for enhanced visual appeal */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 139, 34, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 139, 34, 0.6);
    }
}

/* Spinner rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced dots loading animation */
@keyframes dotFlashing {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce animation for enhanced loading states */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Wave animation for skeleton loaders */
@keyframes wave {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Floating animation for page loading */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ====================================
   2. ENHANCED SKELETON LOADERS
   ==================================== */

.skeleton {
    background: linear-gradient(
        110deg,
        #F5F5F5 8%,
        #EAEAEA 18%,
        #F5F5F5 33%,
        #EAEAEA 50%,
        #F5F5F5 66%
    );
    background-size: 200% 100%;
    animation: shimmer 2.2s ease-in-out infinite;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(234, 234, 234, 0.5);
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2.2s ease-in-out infinite;
    transform: translateX(-100%);
    border-radius: 12px;
}

/* Skeleton variants with enhanced styling */
.skeleton-text {
    height: 18px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 6px;
}

.skeleton-text-short {
    height: 18px;
    width: 60%;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-heading {
    height: 36px;
    width: 80%;
    margin-bottom: 20px;
    border-radius: 8px;
}

.skeleton-paragraph {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-paragraph:last-child {
    width: 70%;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skeleton-card {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skeleton-image {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
}

.skeleton-button {
    height: 44px;
    width: 140px;
    border-radius: 6px;
}

.skeleton-input {
    height: 48px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Skeleton form */
.skeleton-form {
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.skeleton-form .skeleton-input {
    margin-bottom: 16px;
}

/* Responsive skeleton adjustments */
@media (max-width: 768px) {
    .skeleton-heading {
        height: 28px;
        width: 90%;
    }
    
    .skeleton-card {
        height: 160px;
    }
    
    .skeleton-input {
        height: 44px;
    }
}

/* ====================================
   3. TOAST NOTIFICATIONS (Modern Alternative)
   ==================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.toast-out {
    animation: toastSlideOut 0.3s ease-out forwards;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    background: #28a745;
    color: white;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    background: #dc3545;
    color: white;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    background: #ffc107;
    color: #333;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    background: #17a2b8;
    color: white;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toast-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive toasts */
@media (max-width: 576px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        max-width: none;
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* Enhanced dots loader with forest green theme */
.dots-loader {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    animation: dotFlashing 1.2s infinite alternate;
    box-shadow: 0 3px 6px rgba(34, 139, 34, 0.4);
    transition: all 0.3s ease;
}

.dots-loader span:nth-child(1) {
    animation-delay: 0s;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

.dots-loader span:nth-child(4) {
    animation-delay: 0.6s;
}

/* ====================================
   6. INLINE LOADING INDICATORS
   ==================================== */

.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-inline .spinner {
    width: 16px;
    height: 16px;
}

/* Loading text */
.loading-text {
    color: #666;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ====================================
   7. CONTENT LOADING STATES
   ==================================== */

.content-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.content-loading .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.content-loading-text {
    color: #666;
    font-size: 14px;
}

/* ====================================
   8. PROGRESS BAR
   ==================================== */

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.indeterminate {
    width: 30%;
    animation: progressIndeterminate 1.5s ease-in-out infinite;
}

@keyframes progressIndeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* ====================================
   9. FADE TRANSITIONS
   ==================================== */

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* ====================================
   10. ACCESSIBILITY
   ==================================== */

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only content */
.sr-only-loading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ====================================
   11. UTILITY CLASSES
   ==================================== */

.is-loading {
    pointer-events: none;
    cursor: wait;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-100 {
    opacity: 1;
}

/* Smooth transitions */
.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ====================================
   12. DARK MODE SUPPORT
   ==================================== */

@media (prefers-color-scheme: dark) {
    .skeleton {
        background: linear-gradient(
            90deg,
            #2a2a2a 0%,
            #3a3a3a 20%,
            #2a2a2a 40%,
            #2a2a2a 100%
        );
    }
    
    .page-loading-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .page-loading-text {
        color: #ccc;
    }
    
    .content-loading-text,
    .loading-text {
        color: #aaa;
    }
}

/* ====================================
   13. SUCCESS & ERROR MESSAGES
   ==================================== */

/* Base alert styles with modern design */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.4s ease-out;
    border: none;
}

/* Success message */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Error message */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Warning message */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-warning::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffc107;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Info message */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-info::before {
    content: 'ⓘ';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #17a2b8;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Alert content wrapper */
.alert-content {
    flex: 1;
}

/* Alert with list */
.alert ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

/* Close button for alerts */
.alert-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive alerts */
@media (max-width: 576px) {
    .alert {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .alert::before {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* ====================================
   14. ENHANCED FORM LOADING OVERLAY
   ==================================== */

.form-loading {
    position: relative !important;
    pointer-events: none !important;
    min-height: 100px;
    transition: all 0.3s ease;
}

.form-loading::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999 !important;
    border-radius: 12px;
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.form-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: -40px 0 0 -20px !important;
    border: 3px solid rgba(0, 0, 0, 0.1) !important;
    border-top-color: #000000 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    z-index: 1000 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading text below spinner */
.form-loading-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 20px !important;
    z-index: 1001 !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    text-align: center !important;
    pointer-events: none !important;
}

/* Form submitting feedback - more subtle */
.form-submitting .form-control {
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.form-submitting button[type="submit"] {
    cursor: not-allowed;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Responsive form loading */
@media (max-width: 768px) {
    .form-loading::after {
        width: 36px !important;
        height: 36px !important;
        margin: -36px 0 0 -18px !important;
        border-width: 3px !important;
    }
    
    .form-loading-text {
        font-size: 14px !important;
        margin-top: 18px !important;
    }
}

/* ====================================
   15. ENHANCED BUTTON LOADING
   ==================================== */

.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transition: opacity 0.3s ease;
}

.btn-loading .btn-text {
    visibility: hidden !important;
    opacity: 0 !important;
}

.btn-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: spin 0.6s linear infinite !important;
    display: block !important;
}

/* ====================================
   16. ENHANCED PAGE LOADING
   ==================================== */

.page-loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    z-index: 99999 !important;
    animation: fadeIn 0.3s ease;
}

.page-loading-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.page-loading-content {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.page-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.page-loading-text {
    font-size: 15px;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive page loading */
@media (max-width: 576px) {
    .page-loading-content {
        min-width: 180px;
        padding: 24px 20px;
        border-radius: 10px;
    }
    
    .page-loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
        margin-bottom: 16px;
    }
    
    .page-loading-text {
        font-size: 14px;
    }
}

/* ====================================
   17. ENHANCED SPINNERS
   ==================================== */

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 4px solid rgba(34, 139, 34, 0.15);
    border-top-color: #228B22;
    border-right-color: #228B22;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.2, 0.5, 0.8) infinite;
    box-shadow: 0 0 12px rgba(34, 139, 34, 0.25);
    background: linear-gradient(45deg, transparent 30%, rgba(34, 139, 34, 0.1) 100%);
}

.spinner-white {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-right-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.spinner-small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.spinner-large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* ====================================
   18. RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 768px) {
    .page-loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .page-loading-text {
        font-size: 14px;
    }
    
    .skeleton-heading {
        height: 24px;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .skeleton-form {
        padding: 16px;
    }
    
    .skeleton-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .alert::before {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* ====================================
   19. ENHANCED LOADING COMPONENTS
   ==================================== */

/* Modern card skeleton with improved animation */
.skeleton-card-enhanced {
    background: linear-gradient(
        110deg,
        #F5F5F5 8%,
        #EAEAEA 18%,
        #F5F5F5 33%,
        #EAEAEA 50%,
        #F5F5F5 66%,
        #EAEAEA 83%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(34, 139, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-card-enhanced::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.9) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 300% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
    border-radius: 16px;
}

/* Enhanced loading button with better transitions */
.btn-loading-enhanced {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
    cursor: not-allowed !important;
    transform: scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%) !important;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.3);
}

.btn-loading-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: wave 1.5s ease-in-out infinite;
    border-radius: inherit;
}

/* Progress ring loader */
/* .progress-ring {
    width: 60px;
    height: 60px;
    position: relative;
}

.progress-ring circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.progress-ring .progress-ring-circle {
    stroke: rgba(34, 139, 34, 0.2);
}

.progress-ring .progress-ring-progress {
    stroke: #228B22;
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    animation: progressRing 2s ease-in-out infinite;
}

@keyframes progressRing {
    0% {
        stroke-dashoffset: 188.5;
    }
    50% {
        stroke-dashoffset: 47.1;
    }
    100% {
        stroke-dashoffset: 188.5;
    }
} */

/* Floating dots loader */
.floating-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.floating-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    animation: bounce 1.4s ease-in-out infinite both;
    box-shadow: 0 4px 8px rgba(34, 139, 34, 0.3);
}

.floating-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.floating-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.floating-dots .dot:nth-child(3) { animation-delay: 0s; }

/* Enhanced skeleton text with better spacing */
.skeleton-text-enhanced {
    height: 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(
        110deg,
        #F5F5F5 8%,
        #EAEAEA 18%,
        #F5F5F5 33%,
        #EAEAEA 50%,
        #F5F5F5 66%
    );
    background-size: 250% 100%;
    animation: shimmer 2.2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skeleton-text-enhanced.short {
    width: 60%;
}

.skeleton-text-enhanced.medium {
    width: 80%;
}

/* Loading overlay with enhanced backdrop */
.loading-overlay-enhanced {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 245, 0.95) 0%,
        rgba(234, 234, 234, 0.9) 100%
    );
    backdrop-filter: blur(10px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) inset;
    border: 1px solid rgba(34, 139, 34, 0.1);
}

/* Enhanced form skeleton */
.skeleton-form-enhanced {
    padding: 32px;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 245, 0.8) 0%,
        rgba(234, 234, 234, 0.6) 100%
    );
    border-radius: 20px;
    border: 1px solid rgba(34, 139, 34, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.skeleton-form-enhanced .skeleton-input {
    height: 52px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(
        110deg,
        #F5F5F5 8%,
        #EAEAEA 18%,
        #F5F5F5 33%,
        #EAEAEA 50%,
        #F5F5F5 66%
    );
    background-size: 250% 100%;
    animation: shimmer 2.2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    /* .progress-ring {
        width: 50px;
        height: 50px;
    } */
    
    .floating-dots .dot {
        width: 12px;
        height: 12px;
    }
    
    .skeleton-form-enhanced {
        padding: 24px;
        border-radius: 16px;
    }
    
    .skeleton-form-enhanced .skeleton-input {
        height: 48px;
        margin-bottom: 16px;
    }
}

