/* Wave animation for header */
@keyframes wave {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.wave-animation {
    animation: wave 3s ease-in-out infinite;
}

/* Tropical gradient backgrounds */
.tropical-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom scrollbar for tropical theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1e40af, #10b981);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1d4ed8, #059669);
}

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

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Pulse animation for emergency alerts */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Island map hover effects */
.island-school:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Typography for tropical theme */
.tropical-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom focus styles */
button:focus, input:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-mobile-fix {
        grid-template-columns: 1fr;
    }
}

/* Progress bar styling */
.progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #fbbf24 50%, #ef4444 100%);
    border-radius: 9999px;
}

/* Coconut counter special effects */
.coconut-bounce {
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Island theme borders */
.island-border {
    border-image: linear-gradient(45deg, #1e40af, #10b981, #fbbf24) 1;
}

/* Weather widget styling */
.weather-widget {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* Navigation active state */
.nav-active {
    background: linear-gradient(135deg, #1e40af, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* Table styling improvements */
.tropical-table {
    border-collapse: separate;
    border-spacing: 0;
}

.tropical-table th {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.tropical-table tr:nth-child(even) {
    background: rgba(16, 185, 129, 0.05);
}

.tropical-table tr:hover {
    background: rgba(16, 185, 129, 0.1);
    transition: background-color 0.2s ease;
}