@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Hind Siliguri', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* Utility Animations */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse 2s ease-in-out infinite; }
.spinner { border: 3px solid rgba(0,0,0,0.1); border-top: 3px solid #16a34a; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Progress bar */
.progress-bar { transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Card hover */
.hover-card { transition: all 0.3s ease; }
.hover-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

/* Hero Section */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%); z-index:1; }

/* Forms */
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; transition: all 0.3s ease; }
.form-input:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); color:white; font-weight:600; padding:12px 24px; border-radius:8px; border:none; cursor:pointer; transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(22,163,74,0.4); }
.btn-primary:disabled { opacity:0.5; cursor:not-allowed; }

/* Modals */
.modal { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:9999; opacity:0; visibility:hidden; transition: all 0.3s ease; }
.modal.show { opacity:1; visibility:visible; }
.modal-content { background:white; border-radius:12px; max-width:500px; width:90%; max-height:90vh; overflow-y:auto; transform:translateY(-20px); transition: all 0.3s ease; }
.modal.show .modal-content { transform:translateY(0); }

/* Toast */
.toast { position: fixed; bottom:20px; right:20px; background:#16a34a; color:white; padding:12px 24px; border-radius:8px; box-shadow:0 4px 6px rgba(0,0,0,0.1); transform:translateY(100px); transition: transform 0.3s ease; z-index:9999; }
.toast.show { transform:translateY(0); }
.toast.error { background:#dc2626; }
.toast.warning { background:#f59e0b; }

/* Countdown timer */
.countdown-item { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border:1px solid rgba(255,255,255,0.2); transition: all 0.3s ease; }
.countdown-item:hover { transform: scale(1.05); background: rgba(255,255,255,0.2); }

/* Donation Levels */
.level-btn { transition: all 0.3s ease; }
.level-btn.selected { background:#16a34a; color:white; border-color:#16a34a; }

/* Responsive Tables */
@media(max-width:768px){
    .responsive-table { overflow-x:auto; }
    .responsive-table table { min-width:600px; }
}

/* PWA Install Prompt */
.pwa-install-prompt { position: fixed; bottom:20px; right:20px; background:white; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,0.2); padding:16px; max-width:350px; z-index:9999; animation: slideUp 0.3s ease; }
.pwa-install-prompt.hide { animation: slideDown 0.3s ease forwards; }

/* Installed Badge */
.pwa-badge { position: fixed; top:10px; right:10px; background:#16a34a; color:white; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:bold; z-index:9998; animation: pulse 2s infinite; }