/* Custom Styles for WP WELLNET */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Prompt', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide all views by default except dashboard */
.view {
    display: none;
}

.view:first-child {
    display: block;
}

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

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #A5D6A7;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #81C784;
}

/* Smooth transitions */
.nav-item {
    transition: all 0.2s ease;
}

.nav-item.active {
    color: #10B981;
}

.nav-item:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Button animations */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Progress circle animation */
circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
}

/* Checkbox custom styling */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: #10B981;
    border-color: #10B981;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Chart container responsiveness */
canvas {
    max-width: 100%;
    height: auto !important;
}

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

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

/* Mobile optimizations */
@media (max-width: 640px) {
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}