/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hide-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader-bars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.loader-bars .bar {
    width: 6px;
    height: 40px;
    background: #065f46;
    border-radius: 3px;
    animation: barBounce 0.8s ease-in-out infinite;
}

.loader-bars .bar:nth-child(1) { animation-delay: 0s; }
.loader-bars .bar:nth-child(2) { animation-delay: 0.15s; }
.loader-bars .bar:nth-child(3) { animation-delay: 0.3s; }
.loader-bars .bar:nth-child(4) { animation-delay: 0.45s; }
.loader-bars .bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes barBounce {
    0%, 100% {
        transform: scaleY(1);
        background: #065f46;
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1.8);
        background: #d4af37;
        opacity: 1;
    }
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #065f46;
    letter-spacing: 2px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom animations */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Loading spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #065f46;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

    /* Custom animations and styles */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s ease;
    }
    
    .fade-in.show {
      opacity: 1;
      transform: translateY(0);
    }
    
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    
    .slider-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      border: none;
      border-radius: 9999px;
      padding: 12px;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      z-index: 10;
      transition: all 0.3s ease;
    }
    
    .slider-btn:hover {
      background: #065f46;
      color: white;
      transform: translateY(-50%) scale(1.1);
    }
    
    .left-4 { left: 4px; }
    .right-4 { right: 4px; }
    
    .hover-lift {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .hover-lift:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    /* Custom scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
    }
    
    ::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
      background: #065f46;
      border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
      background: #047857;
    }
    
    /* Badge styles */
    .badge {
      padding: 4px 8px;
      border-radius: 9999px;
      font-size: 12px;
      font-weight: 500;
    }
    .badge-info { background: #dbeafe; color: #1e40af; }
    .badge-success { background: #d1fae5; color: #065f46; }
    .badge-warning { background: #fef3c7; color: #d97706; }
    
    .line-clamp-2 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .line-clamp-3 {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    /* ========================================
   RESPONSIVE FIXES FOR MEDIUM SCREENS
   ======================================== */

/* Medium screens (tablets, 768px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Header adjustments */
    .header-title {
        font-size: 1rem;
    }
    
    .header-subtitle {
        font-size: 0.7rem;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Adjust spacing */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Small screens (phones, below 768px) */
@media screen and (max-width: 768px) {
    .header-title {
        font-size: 0.9rem;
    }
    
    .header-subtitle {
        font-size: 0.6rem;
    }
    
    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Mobile header fixes */
@media screen and (max-width: 480px) {
    /* Logo and title */
    .header-logo {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .header-title {
        font-size: 0.8rem;
    }
    
    .header-subtitle {
        display: none;
    }
    
    /* Make login button smaller on mobile */
    .header-login-btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
}