/* =========================================================
   GLOBAL STYLE – HỆ THỐNG QLTS BV KHÁNH HÒA
   Áp dụng chung – Không thay đổi HTML
========================================================= */

/* ===== FONT & BODY ===== */
body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    background-color: #f4f6f9;
    color: #1f2937;
}

/* ===== NAVBAR ===== */
.navbar {
    font-size: 14px;
}

.navbar-brand {
    font-weight: 600;
}

.navbar .nav-link {
    padding: 0.5rem 0.75rem;
}

.navbar .nav-link:hover {
    opacity: 0.9;
}

/* ===== FIX CONTAINER (FULL WIDTH CONTENT) ===== */
main.container {
    max-width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
}

/* Flash message container vẫn giữ gọn */
body > .container.mt-3 {
    max-width: 1320px;
}

/* ===== HEADER TITLE ===== */
h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

/* ===== TABLE WRAPPER ===== */
.table-responsive {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== TABLE ===== */
.table {
    font-size: 14px;
}

.table thead th {
    background-color: #f8fafc;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

/* ===== FILTER INPUT IN TABLE HEADER ===== */
.table thead input,
.table thead select {
    font-size: 13px;
    padding: 4px 6px;
}

/* ===== BUTTON ===== */
.btn {
    font-weight: 500;
    border-radius: 6px;
}

.btn i {
    margin-right: 4px;
}

/* ===== PAGINATION ===== */
.pagination {
    justify-content: center;
}

/* ===== MODAL ===== */
.modal-content {
    border-radius: 14px;
}

.modal-header {
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: none;
}

/* ===== FORM ===== */
.form-label {
    font-weight: 500;
    font-size: 13px;
}

.form-control,
.form-select {
    font-size: 14px;
    border-radius: 6px;
}

/* ===== FOOTER ===== */
footer {
    font-size: 13px;
}

/* =========================================================
   MOBILE OPTIMIZATION
========================================================= */
@media (max-width: 768px) {

    body {
        font-size: 13px;
    }

    main.container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h3 {
        font-size: 18px;
    }

    .table-responsive {
        padding: 6px;
    }

    .table {
        font-size: 13px;
    }

    .table thead th,
    .table tbody td {
        white-space: nowrap;
    }

    .modal-dialog {
        max-width: 95%;
        margin: auto;
    }
}
