/* app/static/css/custom.css */
:root {
    --primary-color: #0d6efd;
    --bg-light: #f4f6f9;
    --bottom-nav-height: 70px; /* Chiều cao thanh menu dưới */
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: var(--bottom-nav-height); /* Chừa chỗ cho menu dưới */
}

/* --- Mobile Optimization --- */
.touch-target {
    min-height: 48px; /* Chuẩn Apple/Google cho nút bấm */
    font-size: 16px;  /* Tránh zoom tự động trên iOS */
}

.form-control-lg {
    border-radius: 12px;
    font-size: 16px;
    padding: 12px 15px;
}

.btn-lg {
    border-radius: 12px;
    font-weight: 600;
}

/* --- Bottom Navigation Bar (Mobile Only) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* Hỗ trợ iPhone tai thỏ */
}

.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    width: 20%;
}

.nav-item-mobile i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item-mobile.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Nút giữa nổi (Floating Action Button style) */
.nav-item-fab {
    transform: translateY(-20px);
}
.nav-item-fab .fab-btn {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
    font-size: 24px;
}

/* --- Desktop Sidebar --- */
@media (min-width: 992px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
    .sidebar-wrapper {
        min-height: 100vh;
        background: #fff;
        border-right: 1px solid #eee;
    }
}
