:root {
    --forest: #2b9348;   /* Vivid Avocado Skin */
    --emerald: #55a630;  /* Lush Canopy Green */
    --mint: #f1f8e9;     /* Creamy Avocado Flesh */
    --accent: #aacc00;   /* Vibrant Sprout Green */
    --text: #1b4332;
    --muted: #80b918;    /* Leafy Green */
    --bg: #fcfdfc;
    --white: #ffffff;
    --error: #e01e37;
    --radius: 16px;
    --shadow: 0 10px 50px rgba(43, 147, 72, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; border: 1px solid rgba(27, 67, 50, 0.05); box-shadow: var(--shadow); }

h1, h2, h3 { font-weight: 800; color: var(--forest); letter-spacing: -1px; margin-bottom: 2rem; }
p { color: var(--muted); margin-bottom: 1.5rem; }

.btn { padding: 0.8rem 1.8rem; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.btn-primary { background: var(--forest); color: white; }
.btn-primary:hover { background: var(--emerald); transform: translateY(-2px); }

input, select, textarea { width: 100%; padding: 1rem; border-radius: 10px; border: 1px solid #ddd; background: #fff; font-size: 1rem; color: var(--text); }
input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px var(--mint); }

.badge { padding: 4px 12px; border-radius: 50px; font-weight: 800; font-size: 0.7rem; background: var(--mint); color: var(--forest); text-transform: uppercase; }

/* DASHBOARD LAYOUT */
.layout { display: flex; min-height: 100vh; background: #fff; }
.sidebar { width: 280px; background: var(--forest); color: white; padding: 2rem; display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 1000; overflow-y: auto; }
.main { margin-left: 280px; flex: 1; min-height: 100vh; padding: 4rem; transition: 0.3s; }

/* MOBILE BOTTOM NAV */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 75px; background: rgba(255,255,255,0.9); backdrop-filter: blur(15px); border-top: 1px solid rgba(0,0,0,0.05); z-index: 2000; justify-content: space-around; align-items: center; padding: 0 10px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #888; font-size: 0.65rem; font-weight: 700; gap: 4px; transition: 0.2s; }
.mobile-nav a i { font-size: 1.4rem; }
.mobile-nav a.active { color: var(--forest); }
.mobile-nav a.active i { transform: translateY(-3px); color: var(--emerald); text-shadow: 0 4px 10px rgba(45, 106, 79, 0.3); }

/* MOBILE HEADER */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; border-bottom: 1px solid #eee; z-index: 1500; align-items: center; justify-content: space-between; padding: 0 1.5rem; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 280px; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); padding-top: 5rem !important; }
    .sidebar.active { transform: translateX(0); box-shadow: 20px 0 100px rgba(0,0,0,0.4); }
    .main { margin-left: 0; padding: 5rem 1rem 7rem; }
    .mobile-nav { display: flex; }
    .mobile-header { display: flex; }
    
    h1 { font-size: 1.8rem; letter-spacing: -1px; }
    .card { padding: 1.5rem; }
}

/* TOUCH OPTIMIZATIONS */
.btn, .card, a { -webkit-tap-highlight-color: transparent; user-select: none; }
input, select, textarea { font-size: 16px !important; } /* Prevents iOS zoom */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.7s forwards; }
