﻿:root {
    --radius: 16px;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.appbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    display: inline-block;
}

.cardx {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.05);
}

    .cardx .cardx-body {
        padding: 14px;
    }

.btn {
    border-radius: 12px;
}

.input, .form-control, .form-select {
    border-radius: 12px;
    padding: 12px 12px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

    .bottom-nav .nav-item {
        text-decoration: none;
        color: #6c757d;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        gap: 4px;
    }

        .bottom-nav .nav-item i {
            font-size: 20px;
        }

        .bottom-nav .nav-item.active {
            color: #0d6efd;
            font-weight: 600;
        }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 80px; /* for bottom nav space */
}

.menu-tile {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: #212529;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .menu-tile i {
        font-size: 26px;
        margin-bottom: 6px;
        color: #0d6efd;
    }

    .menu-tile .title {
        font-weight: 700;
        font-size: 14px;
        line-height: 1.2;
    }

    .menu-tile .sub {
        font-size: 12px;
        color: #6c757d;
        margin-top: 2px;
    }
/* Login Page */
.login-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding-top: 40px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
    color: #212529;
}

.brand-sub {
    font-size: 13px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Base tile */
.menu-tile {
    padding: 16px 14px;
    border-radius: 18px;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .08s ease, box-shadow .08s ease;
}

    .menu-tile:active {
        transform: scale(.97);
        box-shadow: 0 4px 12px rgba(0,0,0,.06);
    }

    .menu-tile i {
        font-size: 26px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.55);
        border: 1px solid rgba(0,0,0,.06);
    }

    .menu-tile .title {
        font-weight: 700;
        font-size: 15px;
    }

    .menu-tile .sub {
        font-size: 12px;
        opacity: .7;
    }

/* 🎨 Color Themes (Soft + Premium) */
.tile-blue {
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(37,99,235,.10));
}

.tile-green {
    background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(22,163,74,.10));
}

.tile-purple {
    background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(126,34,206,.10));
}

.tile-indigo {
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(79,70,229,.10));
}

.tile-amber {
    background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(217,119,6,.10));
}

.tile-cyan {
    background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(8,145,178,.10));
}

.tile-slate {
    background: linear-gradient(135deg, rgba(100,116,139,.16), rgba(71,85,105,.08));
}

.tile-danger {
    background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(220,38,38,.10));
    color: #7f1d1d;
}

.page-header {
    z-index: 1030;
}
.appbar {
    height: 52px;
    z-index: 1050;
}

.appbar-left,
.appbar-right {
    width: 40px;
    display: flex;
    justify-content: center;
}

.appbar-center {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
