:root {
    --mansamo-green: #006837;
    --mansamo-dark: #004d29;
    --mansamo-blue: #0d47a1;
    --mansamo-orange: #f57c00;
    --mansamo-gold: #d4af37;
    --bg-app: #f2f5f9;
}

body {
    background-color: var(--bg-app);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.08);
    position: relative;
    padding-bottom: 85px;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .app-shell-wide {
        max-width: 960px;
        margin: 20px auto;
        min-height: calc(100vh - 40px);
        border-radius: 28px;
        box-shadow: 0 20px 50px rgba(0, 77, 41, 0.12);
        padding-bottom: 90px;
    }
}

.app-header-banner {
    background: linear-gradient(135deg, #004d29 0%, #006837 60%, #0b7a43 100%);
    color: #fff;
    padding: 24px 22px 46px 22px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    position: relative;
}

.app-header-banner .avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #ffd54f;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}

.dashboard-sheet {
    margin-top: -26px;
    padding: 0 18px;
    position: relative;
    z-index: 5;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.app-tile {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 104, 55, 0.14);
    color: var(--mansamo-green);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.tile-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.bg-soft-blue { background: #e3f2fd; color: #1565c0; }
.bg-soft-green { background: #e8f5e9; color: #006837; }
.bg-soft-purple { background: #ede7f6; color: #5e35b1; }
.bg-soft-orange { background: #fff3e0; color: #ef6c00; }
.bg-soft-teal { background: #e0f2f1; color: #00796b; }
.bg-soft-red { background: #ffebee; color: #c62828; }
.bg-soft-amber { background: #fff8e1; color: #f57f17; }
.bg-soft-indigo { background: #e8eaf6; color: #283593; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 10px 0;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}

@media (min-width: 768px) {
    .bottom-nav-wide {
        max-width: 960px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
}

.bottom-nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bottom-nav a.active, .bottom-nav a:hover {
    color: var(--mansamo-green);
}

.btn-mansamo, .btn-kemenag {
    background: linear-gradient(135deg, #006837 0%, #004d29 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
}
.btn-mansamo:hover, .btn-kemenag:hover {
    background: linear-gradient(135deg, #004d29 0%, #00381e 100%);
    color: #fff;
}

.login-hero-bg {
    background: linear-gradient(135deg, #f4f8fc 0%, #e8f3ee 100%);
    min-height: 100vh;
}
.feature-pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
