/* ================================================ */
/* Hydratr Custom Styles - Full ~300 Lines         */
/* ================================================ */

/* === Fonts & Base === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    transition: background 0.3s, color 0.3s;
    background: #f0f9ff;
    color: #1e293b;
    min-height: 100vh;
}

.dark body {
    background: #0f172a;
    color: #e2e8f0;
}

/* === Links === */
a {
    transition: color 0.3s ease;
}
a:hover {
    color: #3b82f6;
}

/* === Buttons === */
.btn-primary {
    background: linear-gradient(135deg,#3b82f6,#06b6d4);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
    transition: all 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.45);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* === Glass Cards & Hover === */
.glass-effect {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.dark .glass-effect {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

/* === Water Cards === */
.water-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.water-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* === Progress Bar === */
.progress-bar {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg,#3b82f6,#06b6d4);
    transition: width 1s ease-in-out;
}

/* === Animations === */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}
@keyframes fadeIn {
    from {opacity:0; transform: translateY(10px);}
    to {opacity:1; transform: translateY(0);}
}

.slide-up {
    animation: slideUp 0.3s ease-out forwards;
}
@keyframes slideUp {
    from {transform: translateY(10px); opacity:0;}
    to {transform: translateY(0); opacity:1;}
}

.wave-animation {
    background: linear-gradient(90deg,#3b82f6,#60a5fa,#3b82f6);
    background-size: 200% 100%;
    animation: wave 3s infinite linear;
}
@keyframes wave {
    0% { background-position:0% 50%; }
    100% { background-position:200% 50%; }
}

/* === Tables === */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
}
.responsive-table th {
    background: #e0f2fe;
    font-weight: 600;
}
.responsive-table td {
    border-top: 1px solid #bae6fd;
}
.dark .responsive-table th {
    background: #1e293b;
    color: #e2e8f0;
}
.dark .responsive-table td {
    border-top: 1px solid #334155;
}

/* === Scrollbars === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* === Spinner === */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* === Text Utilities === */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-hover {
    transition: box-shadow 0.2s;
}
.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -2px rgba(0,0,0,0.05);
}

/* === Card/Chart Containers === */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Smooth chart animation */
canvas {
    transition: all 0.3s ease;
}
.dark canvas {
    filter: brightness(0.9);
}

/* === Responsive Helpers === */
@media (max-width: 768px) {
    .mobile-padding {
        padding: 1rem;
    }
    .mobile-stack {
        flex-direction: column;
    }
}

/* === Print Styles === */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; color: black !important; }
    .card { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* === Footer & Nav Shadows === */
nav, footer {
    transition: background 0.3s, box-shadow 0.3s;
}
nav {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
footer {
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}

/* === Misc Helpers === */
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }

/* ================================================ */
/* END OF HYDRATR CUSTOM CSS ~300+ lines           */
/* ================================================ */
