/* REMARK: GLOBAL APP STYLING v1.0
   Enforces consistent scale, cards, and mobile-first layout.
*/

:root { 
    --bg: #ffffff; 
    --text: #18181b; 
    --card-bg: #ffffff; 
    --ring-bg: #f4f4f5; 
    --border: #e4e4e7;
    --accent: #18181b;
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; padding: 0; 
    -webkit-font-smoothing: antialiased; 
}

/* Enforces the 'Disc' and 'Card' width across all views */
#app-container {
    max-width: 500px;
    margin: 0 auto; 
    padding: 20px; 
    padding-bottom: 120px; /* Space for the bottom nav */
}

.card { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    padding: 15px;
    margin-bottom: 15px;
}

/* Standardize Inputs for all silos */
input, select { 
    font-family: inherit; 
    width: 100%; 
    padding: 10px; 
    border: 1px solid var(--border); 
    border-radius: 8px;
    box-sizing: border-box; /* Prevents width overflow */
}

label {
    font-size: 10px; 
    font-weight: 700; 
    color: #71717a;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Ring Charts (For Dashboard) */
.ring {
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.inner-ring {
    width: 56px; height: 56px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}

/* Navigation */
#bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); 
    padding: 15px 0 25px 0; 
    display: flex; justify-content: center; gap: 8px; 
    z-index: 100;
}
.nav-btn {
    background: var(--accent); color: white; border: none; 
    padding: 10px 14px; border-radius: 10px; 
    font-weight: 700; font-size: 11px; cursor: pointer;
}

/* REMARK: MOBILE ZOOM FIX
   Prevents the 'Pan and Zoom' behavior on data entry.
*/

input, select, textarea {
    font-size: 16px !important; /* Forces browser to stay at 1:1 scale */
    -webkit-appearance: none;   /* Removes default mobile styling shadows */
}

/* Optional: Keep the label small, but the input big enough to satisfy the browser */
label {
    font-size: 11px;
    letter-spacing: 0.05em;
}