/* CalTrack Pro - Consumer Web Application Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #10b981;
    --brand-dark: #064e3b;
    --brand-light: #ecfdf5;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

/* Consumer Card Design System */
.app-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    border-radius: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

/* Hero Background Gradients */
.bg-hero-gradient {
    background: radial-gradient(120% 120% at 50% 10%, #ffffff 0%, #f0fdf4 50%, #e0f2fe 100%);
}

.bg-glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

/* Water Bottle Visualizer */
.water-flask {
    position: relative;
    width: 7rem;
    height: 12rem;
    background: #e0f2fe;
    border: 3px solid #0284c7;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.water-flask-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Navigation Container */
#appSidebar > div:nth-child(2) {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#appSidebar > div:nth-child(2)::-webkit-scrollbar {
    width: 6px;
}

#appSidebar > div:nth-child(2)::-webkit-scrollbar-track {
    background: transparent;
}

#appSidebar > div:nth-child(2)::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#appSidebar > div:nth-child(2)::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Navigation Item Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    border-radius: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.sidebar-link.active {
    color: #059669;
    background-color: #ecfdf5;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #10b981;
}

/* Meal Type Badges */
.badge-breakfast { background: #fef3c7; color: #92400e; }
.badge-lunch { background: #d1fae5; color: #065f46; }
.badge-dinner { background: #e0e7ff; color: #3730a3; }
.badge-snack { background: #ffe4e6; color: #9f1239; }

/* Tab Container Switching */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Sample Data Display */
#mealsTableBodyTab tr[data-sample="true"] {
    display: table-row;
}
