@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ग्लोबल 3D बॅकग्राउंड */
body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background-color: #e6e9f0; /* Soft 3D Base Color */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #eef2f5;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    position: relative;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* 3D Top Dashboard (ग्लास आणि ग्रेडियंट) */
.top-dashboard {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    color: white;
    padding: 25px 20px 40px 20px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: 0 10px 20px rgba(27, 94, 32, 0.3), 
                inset 0 -3px 8px rgba(0,0,0,0.2),
                inset 0 3px 8px rgba(255,255,255,0.2);
}

.weather-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-titles h1 { 
    margin: 0; 
    font-size: 26px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.header-titles p { 
    margin: 5px 0 0; 
    font-size: 14px; 
    opacity: 0.9; 
}

/* 3D Stats Row (Floating Cards) */
.stats-row {
    display: flex;
    gap: 15px;
    margin-top: -30px;
    padding: 0 20px;
}

.stat-box {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 10px;
    text-align: center;
    /* 3D Neumorphic Shadow */
    box-shadow: 6px 6px 12px rgba(0,0,0,0.08), 
               -6px -6px 12px rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.2s;
}

.stat-box h3 { 
    margin: 0; 
    color: #1b5e20; 
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.stat-box p { 
    margin: 5px 0 0; 
    font-size: 12px; 
    color: #666; 
    font-weight: bold; 
}

/* Category Headings */
.category-title {
    margin: 25px 20px 15px;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}
.category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, #ff9800, #f57c00);
    margin-right: 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(255, 152, 0, 0.4);
}

/* 3D App Grid Cards (Main Modules) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.module-card {
    background: #eef2f5;
    border-radius: 18px;
    padding: 18px 5px;
    text-align: center;
    text-decoration: none;
    color: #333;
    /* Soft 3D Extrusion */
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.08), 
               -7px -7px 15px rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 3D Push Effect on Click */
.module-card:active {
    box-shadow: inset 5px 5px 10px rgba(0,0,0,0.08), 
                inset -5px -5px 10px rgba(255,255,255,1);
    transform: translateY(2px);
}

.module-icon { 
    font-size: 30px; 
    margin-bottom: 8px; 
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15)); /* 3D Icon Shadow */
}
.module-title { 
    font-size: 11px; 
    font-weight: 700; 
    line-height: 1.3; 
    color: #444;
}

/* 3D Forms & Inputs */
.form-section {
    background: #eef2f5;
    padding: 20px;
    margin: 10px 20px 20px;
    border-radius: 16px;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.05), 
                inset -4px -4px 8px rgba(255,255,255,1);
}

input, select, textarea {
    background: #eef2f5 !important;
    border: none !important;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.08), 
                inset -4px -4px 8px rgba(255,255,255,1) !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    color: #333;
    font-weight: 600;
}
input:focus, select:focus {
    outline: none;
    box-shadow: inset 6px 6px 10px rgba(0,0,0,0.1), 
                inset -6px -6px 10px rgba(255,255,255,1),
                0 0 0 2px rgba(76, 175, 80, 0.3) !important;
}

/* REAL 3D Push Button (Calculators/Actions) */
.btn-calculate {
    background: linear-gradient(145deg, #4caf50, #43a047);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    /* Physical Button Thickness */
    box-shadow: 0 6px 0 #2e7d32, 
                0 12px 15px rgba(0,0,0,0.2),
                inset 0 2px 2px rgba(255,255,255,0.3);
    transition: all 0.1s ease;
    margin-top: 10px;
}

/* When pressed, button physically goes down */
.btn-calculate:active {
    top: 4px;
    box-shadow: 0 2px 0 #2e7d32, 
                0 4px 6px rgba(0,0,0,0.2),
                inset 0 2px 2px rgba(255,255,255,0.3);
}

/* 3D Floating AI Voice Button (Sphere Effect) */
.ai-fab {
    position: fixed;
    bottom: 25px;
    right: calc(50% - 220px);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    
    /* 3D Sphere Effect */
    background: radial-gradient(circle at 30% 30%, #ffcc80, #f57c00, #e65100);
    box-shadow: 
        0 10px 20px rgba(230, 81, 0, 0.4), /* Outer Shadow */
        -3px -3px 10px rgba(255, 255, 255, 0.5), /* Top Highlight */
        inset -4px -4px 8px rgba(0, 0, 0, 0.2), /* Inner Shadow */
        inset 4px 4px 8px rgba(255, 255, 255, 0.6); /* Inner Highlight */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 480px) {
    .ai-fab { right: 25px; }
}

.ai-fab:active { 
    transform: scale(0.9) translateY(4px); 
    box-shadow: 
        0 5px 10px rgba(230, 81, 0, 0.4),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2), 
        inset 4px 4px 8px rgba(255, 255, 255, 0.4);
}

/* 3D Result Cards (Information display) */
.result-card, .timeline-card, .diet-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 6px 6px 15px rgba(0,0,0,0.06), 
               -6px -6px 15px rgba(255,255,255,1);
    border: 1px solid rgba(255,255,255,0.6);
}
