:root {
    --sidebar-bg: #0e2438;
    --sidebar-icon: #7f97ad;
    --accent: #17c3b2;
    --topbar-bg: #ffffff;
    --page-bg: #f4f6f9;
}

body {
    background-color: var(--page-bg);
    color: #33475b;
}

/* ---------- App shell / sidebar ---------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 68px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-logo {
    color: var(--accent);
    font-size: 1.6rem;
    padding: 1.25rem 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.sidebar-nav a,
.sidebar-bottom a {
    display: block;
    text-align: center;
    padding: 0.9rem 0;
    color: var(--sidebar-icon);
    font-size: 1.25rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover,
.sidebar-bottom a:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-nav a.active {
    color: #ffffff;
    background-color: rgba(23, 195, 178, 0.15);
    border-left-color: var(--accent);
}

.sidebar-bottom {
    width: 100%;
    padding-bottom: 1rem;
}

/* ---------- Top bar ---------- */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background-color: var(--topbar-bg);
    border-bottom: 1px solid #e3e8ee;
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sidebar-bg);
}

.topbar-brand span {
    font-weight: 400;
    color: var(--accent);
}

.topbar-guest {
    justify-content: center;
}

.topbar-user .btn {
    border: none;
    background: transparent;
    font-weight: 500;
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
}

.content-area {
    padding: 1.75rem;
}

.guest-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.guest-shell .content-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Action tiles ---------- */
.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0.5rem;
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    height: 100%;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.action-tile:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.action-tile i {
    font-size: 1.8rem;
}

.tile-blue { background-color: #4aa3df; }
.tile-teal { background-color: #26a69a; }
.tile-green { background-color: #7cb342; }
.tile-purple { background-color: #7e57c2; }
.tile-orange { background-color: #ffa726; }
.tile-red { background-color: #ef5350; }

/* ---------- Stat cards ---------- */
.stat-card .card-body {
    text-align: center;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sidebar-bg);
}

.stat-label {
    color: #7f97ad;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Activity feed ---------- */
.activity-feed li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f5;
}

.activity-feed li:last-child {
    border-bottom: none;
}

.activity-feed i {
    margin-right: 0.4rem;
}

#map {
    width: 100%;
    border-radius: 0.375rem;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
