:root{
    --bg:#f4f7fb;
    --surface:#ffffff;
    --primary:#0f766e;
    --primary-light:#14b8a6;
    --soft:#ecfdf5;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e2e8f0;
}

*{
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,body{
    margin:0;
    padding:0;
    height:100%;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow:hidden;
}

/* APP WRAPPER */
.app-container{
    position:relative;
    height:100vh;
    width:100%;
    overflow:hidden;
}

/* ================= HEADER ================= */

.app-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:68px;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    color:white;
    z-index:1000;
}

.app-title{
    font-size:17px;
    font-weight:600;
    letter-spacing:0.3px;
}

.app-header select{
    background:rgba(255,255,255,0.2);
    border:none;
    border-radius:12px;
    padding:7px 12px;
    color:white;
    font-size:13px;
}

.profile-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    background:rgba(255,255,255,0.25);
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ================= BODY ================= */

.app-body{
    position:absolute;
    top:68px;
    bottom:72px;
    left:0;
    right:0;
    overflow-y:auto;
    padding:20px;
    -webkit-overflow-scrolling:touch;
}

/* ================= SUMMARY ================= */

.summary-box{
    background:var(--surface);
    border-radius:20px;
    padding:20px;
    margin-bottom:22px;
    box-shadow:0 8px 25px rgba(15,118,110,0.08);
    border:1px solid var(--border);
}

.summary-label{
    font-size:14px;
    color:var(--muted);
}

.summary-value{
    font-size:30px;
    font-weight:600;
    margin-top:6px;
    color:var(--primary);
}

/* ================= GRID MENU ================= */

.menu-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.menu-item{
    background:var(--surface);
    border-radius:22px;
    padding:24px 12px;
    text-align:center;
    font-size:14px;
    font-weight:500;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    border:1px solid var(--border);
    transition:0.15s;
}

.menu-item:active{
    transform:scale(0.96);
}

.menu-icon{
    font-size:26px;
    margin-bottom:10px;
    color:var(--primary);
}

/* ================= LIST CARD ================= */

.list-card{
    background:var(--surface);
    border-radius:18px;
    padding:18px;
    margin-bottom:15px;
    box-shadow:0 4px 14px rgba(0,0,0,0.05);
    border:1px solid var(--border);
}

.list-title{
    font-size:16px;
    font-weight:600;
}

.list-meta{
    font-size:14px;
    color:var(--muted);
    margin-top:6px;
}

/* ================= FLOAT BUTTON ================= */

.fab{
    position:fixed;
    bottom:90px;
    right:20px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    color:white;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    z-index:1001;
}

/* ================= BOTTOM NAV ================= */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:72px;
    background:var(--surface);
    border-top:1px solid var(--border);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:1000;
}

.nav-item{
    text-align:center;
    font-size:12px;
    color:var(--muted);
}

.nav-item.active{
    color:var(--primary);
}

.nav-icon{
    font-size:20px;
    margin-bottom:4px;
}

/* ================= FORM PREMIUM ================= */

.form-card{
    background:var(--surface);
    border-radius:22px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    border:1px solid var(--border);
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

.form-group label{
    font-size:13px;
    color:var(--muted);
    margin-bottom:6px;
    font-weight:500;
}

/* INPUT */
.form-group input,
.form-group select{
    padding:14px 16px;
    border-radius:14px;
    border:1px solid var(--border);
    font-size:15px;
    background:#f9fafb;
    appearance:none;
    -webkit-appearance:none;
}

/* SELECT CUSTOM ARROW */

.form-group select{
    background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' fill='%2364768b' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364768b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    background-size:18px;
    padding-right:40px;
}

/* FOCUS */
.form-group input:focus,
.form-group select:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(15,118,110,0.15);
}

/* BUTTON */
.btn-primary{
    width:100%;
    padding:15px;
    border:none;
    border-radius:16px;
    font-size:16px;
    font-weight:600;
    color:white;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    box-shadow:0 6px 16px rgba(0,0,0,0.1);
    transition:0.15s;
}

.btn-primary:active{
    transform:scale(0.98);
}

/* ================= LOGIN PAGE ================= */

.login-wrapper{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    height:100vh;
    padding:30px;
    background:linear-gradient(180deg,#f4f7fb,#ffffff);
}

.login-card{
    width:100%;
    max-width:380px;
    background:white;
    padding:30px 25px;
    border-radius:28px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.login-title{
    font-size:22px;
    font-weight:600;
    margin-bottom:30px;
    text-align:center;
}

.login-card input{
    width:100%;
    padding:16px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    margin-bottom:18px;
    font-size:15px;
}

.login-card input:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(15,118,110,0.15);
}

.login-card button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:18px;
    font-size:16px;
    font-weight:600;
    color:white;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.login-footer{
    position:fixed;
    bottom:20px;
    text-align:center;
    font-size:12px;
    color:#64748b;
    width:100%;
}