
/* ==========================================================================
1. RESET & CƠ BẢN
========================================================================== */
.lg-login-page {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9; /* bg-slate-50 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #334155;
    box-sizing: border-box;
}

    .lg-login-page * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .lg-login-page a {
        text-decoration: none;
    }

    .lg-login-page button {
        cursor: pointer;
        border: none;
        background: transparent;
        font-family: inherit;
        outline: none;
    }

    .lg-login-page input {
        font-family: inherit;
    }

/* ==========================================================================
2. LAYOUT CHÍNH
========================================================================== */
.lg-login-wrapper {
    width: 100%;
    max-width: 950px;
    background-color: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 580px;
    overflow: hidden;
    animation: lg-fadeIn 0.5s ease-out forwards;
}

@media (min-width: 768px) {
    .lg-login-wrapper {
        flex-direction: row;
    }
}

/* ==========================================================================
3. CỘT TRÁI (BRANDING)
========================================================================== */
.lg-login-left {
    display: none;
    width: 42%;
    background: linear-gradient(135deg, #004294 0%, #1e88e5 100%);
    padding: 2.5rem;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .lg-login-left {
        display: flex;
    }
}

.lg-left-content {
    position: relative;
    z-index: 10;
}

.lg-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.lg-logo-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 900;
    font-size: 1.5rem;
}

.lg-brand-title {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    display: block;
    line-height: 1;
}

.lg-brand-subtitle {
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #bfdbfe;
    font-weight: 600;
    margin-top: 0.125rem;
    display: block;
}

.lg-hero-titles {
    margin-bottom: 2.5rem;
}

    /* Bổ sung chặn outline/border từ CSS bên ngoài xâm lấn */
    .lg-hero-titles h1 {
        font-size: 2.25rem;
        font-weight: 700;
        line-height: 1.25;
        outline: none !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

        .lg-hero-titles h1.lg-highlight {
            color: #bfdbfe;
        }

    .lg-hero-titles p {
        color: rgba(219, 234, 254, 0.7);
        font-size: 0.875rem;
        margin-top: 1.5rem;
        line-height: 1.625;
        max-width: 280px;
        outline: none;
        border: none;
    }

.lg-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lg-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lg-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    font-size: 1.125rem;
}

.lg-feature-item:hover .lg-feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.lg-feature-item .lg-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.lg-feature-item .lg-desc {
    font-size: 0.6875rem;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    font-weight: 500;
    margin-top: 0.125rem;
}

.lg-left-footer {
    position: relative;
    z-index: 10;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .lg-left-footer p {
        font-size: 0.625rem;
        opacity: 0.5;
        font-weight: 500;
        letter-spacing: 0.1em;
    }

.lg-bg-decoration {
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(2rem);
    pointer-events: none;
}

/* ==========================================================================
4. CỘT PHẢI (FORM)
========================================================================== */
.lg-login-right {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .lg-login-right {
        padding: 3.5rem;
    }
}

.lg-form-header {
    margin-bottom: 2rem;
}

    .lg-form-header h2 {
        font-size: 1.5rem;
        font-weight: 800;
        color: #1e293b;
        outline: none;
        border: none;
    }

    .lg-form-header p {
        color: #94a3b8;
        font-size: 0.75rem;
        margin-top: 0.5rem;
        font-weight: 500;
        outline: none;
    }

/* Form Controls */
.lg-form-group {
    margin-bottom: 1.25rem;
    position: relative;
    width: 100%;
}

.lg-form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
    letter-spacing: 0.1em;
}

    .lg-form-label.lg-primary {
        color: #2563eb;
    }

.lg-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.lg-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.lg-form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .lg-form-control::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

    .lg-form-control:focus {
        background-color: #ffffff;
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.05);
    }

.lg-input-wrapper:focus-within .lg-input-icon {
    color: #3b82f6;
}

.lg-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    z-index: 2;
}

    .lg-toggle-password:hover {
        color: #3b82f6;
    }

/* Custom Dropdown */
.lg-login-page .lg-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 2.75rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    position: relative;
}

    .lg-login-page .lg-dropdown-btn:hover {
        border-color: #93c5fd;
    }

    .lg-login-page .lg-dropdown-btn:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.05);
        outline: none;
    }

    .lg-login-page .lg-dropdown-btn .fa-building {
        color: rgba(59, 130, 246, 0.4);
    }

    .lg-login-page .lg-dropdown-btn .fa-chevron-down {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.625rem;
        color: #cbd5e1;
        transition: transform 0.3s ease;
    }

.lg-selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

    .lg-selected-text.lg-active {
        color: #334155;
    }

.lg-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-top: 0.375rem;
    padding: 0.375rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}

.lg-dropdown-active .lg-dropdown-menu {
    max-height: 300px !important; 
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 999;
}
.lg-dropdown-item {
    cursor: pointer;
    position: relative;
    z-index: 1000;
}
.lg-dropdown-active .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg) !important;
}

.lg-dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 0.25rem;
}

.lg-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.125rem;
    transition: all 0.2s ease;
}

    .lg-dropdown-item:last-child {
        margin-bottom: 0;
    }

    .lg-dropdown-item:hover {
        background-color: #eff6ff;
        color: #2563eb;
    }

/* Checkbox Tùy chỉnh */
.lg-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
    margin-bottom: 1rem;
}

.lg-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .lg-toggle-container input {
        display: none;
    }

.lg-toggle-slider {
    width: 2.25rem;
    height: 1.25rem;
    background-color: #e2e8f0;
    border-radius: 99px;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

    .lg-toggle-slider::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 1rem;
        height: 1rem;
        background-color: #ffffff;
        border-radius: 50%;
        transition: transform 0.3s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

.lg-toggle-container input:checked + .lg-toggle-slider {
    background-color: #2563eb;
}

    .lg-toggle-container input:checked + .lg-toggle-slider::after {
        transform: translateX(1rem);
    }

.lg-toggle-label {
    margin-left: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.lg-toggle-container:hover .lg-toggle-label {
    color: #475569;
}

.lg-forgot-link {
    font-size: 0.6875rem;
    color: #2563eb;
    font-weight: 700;
    transition: text-decoration 0.2s;
}

    .lg-forgot-link:hover {
        text-decoration: underline;
    }

/* Button Đăng nhập */
.lg-login-page .lg-btn-submit {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(219, 234, 254, 0.8), 0 4px 6px -4px rgba(219, 234, 254, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    outline: none;
}

    .lg-login-page .lg-btn-submit:hover {
        background-color: #1d4ed8;
        box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.8), 0 4px 6px -4px rgba(191, 219, 254, 0.8);
    }

    .lg-login-page .lg-btn-submit:active {
        transform: scale(0.98);
    }

    .lg-login-page .lg-btn-submit:disabled {
        opacity: 0.8;
        cursor: not-allowed;
        transform: none;
    }

.lg-btn-icon {
    font-size: 0.5625rem;
    transition: transform 0.3s ease;
}

.lg-login-page .lg-btn-submit:hover .lg-btn-icon {
    transform: translateX(4px);
}

.lg-form-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

    .lg-form-footer p {
        font-size: 0.5625rem;
        color: #cbd5e1;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        outline: none;
        border: none;
    }

/* ==========================================================================
5. STATUS BOX (Thông báo)
========================================================================== */
.lg-status-box {
    display: none;
    margin-bottom: 1.5rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

    .lg-status-box.lg-show {
        display: flex;
    }

.lg-status-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.lg-status-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

    .lg-status-error .lg-status-icon {
        background-color: #fee2e2;
    }

.lg-status-warning {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

    .lg-status-warning .lg-status-icon {
        background-color: #fef3c7;
    }

.lg-status-success {
    background-color: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

    .lg-status-success .lg-status-icon {
        background-color: #d1fae5;
    }

/* ==========================================================================
6. ANIMATIONS & UTILS
========================================================================== */
@keyframes lg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lg-shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.lg-animate-shake {
    animation: lg-shake 0.4s ease-in-out;
}

@keyframes lg-spin {
    to {
        transform: rotate(360deg);
    }
}

.lg-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lg-spin 0.8s linear infinite;
}

.lg-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lg-d-none {
    display: none !important;
}

/* Custom Scrollbar */
.lg-dropdown-options::-webkit-scrollbar {
    width: 5px;
}

.lg-dropdown-options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}


/* UI chính */

body {
    background-color: #f8fafc;
    color: #1e293b;
}

#sidebar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    transition: all 0.3s ease;
}

.nav-active {
    background-color: #f1f5f9;
    color: #2563eb;
    border-right: 3px solid #2563eb;
    font-weight: 600;
}

.full-screen-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px);
    margin: 20px;
}

.table-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: box-shadow 0.3s ease;
}

.table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

.custom-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    .custom-scroll::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    border-bottom: 2px solid #e2e8f0;
    backdrop-filter: blur(8px);
}

td, th {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

/* Hiệu ứng hover cho bảng */
tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    tbody tr:hover {
        background-color: #f8fafc;
    }

/* Modal Animation */
.modal-overlay {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-content {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.glass-card {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .glass-card:hover {
        box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
        border-color: #cbd5e1;
    }

.dropdown-menu {
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top right;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.show {
    display: block;
}

@media (max-width: 1024px) {
    #sidebar {
        transform: translateX(-100%);
    }

        #sidebar.open {
            transform: translateX(0);
        }
}

/* --- CÁC HIỆU ỨNG MỚI ĐƯỢC THÊM VÀO DƯỚI ĐÂY --- */

/* Hiệu ứng load từng view (Page Transition) - Đã tắt theo yêu cầu người dùng */
/*.view-enter {
    animation: viewFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}*/

/* Hiệu ứng lướt từng hàng trong bảng (Stagger) */
/*@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}*/

/* Hiệu ứng biểu đồ cột mọc lên */
.chart-bar-animate {
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Nút bấm mềm mại */
.btn-active-scale {
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .btn-active-scale:active {
        transform: scale(0.95);
    }

/* Mặc định của fadeInUp cũ */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix jQuery Confirm Centering & Modern Style */
.jconfirm.jconfirm-modern .jconfirm-bg {
    background-color: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(4px);
}

.jconfirm.jconfirm-modern .jconfirm-box {
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
}

/* Đảm bảo căn giữa tuyệt đối khi không dùng Bootstrap */
.jconfirm .jconfirm-cell {
    vertical-align: middle !important;
}

.jconfirm .jconfirm-holder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
}

.jconfirm .jconfirm-box-container {
    margin: 0 !important;
}

/* Loading Bar Styles */
#top-loading-bar {
    transition: width 0.4s ease-in-out, opacity 0.3s ease;
    box-shadow: 0 0 10px #0ea5e9, 0 0 5px #0ea5e9;
}
/* Connection Error Overlay */
#connection-error-overlay {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.85);
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite ease-in-out;
}

/* ==========================================================================
 ERROR 404
========================================================================== */
.err-wrapper {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fb; /* Màu nền xám nhạt của hệ thống */
    color: #334155;
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

    .err-wrapper * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

/* Container & Card Layout */
.err-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    min-height: 550px;
}

/* Left Panel - Blue Branding */
.err-panel-left {
    flex: 1;
    background: linear-gradient(145deg, #1852a3 0%, #2974e5 100%);
    color: #ffffff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.err-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.err-logo-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
}

.err-logo-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.err-logo-text p {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.err-hero h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
    outline: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.err-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 90%;
}

.err-branding-footer {
    font-size: 11px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px;
}

/* Right Panel - Content & Actions */
.err-panel-right {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.err-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.err-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
}

.err-details {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 35px;
}

.err-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

    .err-detail-item:last-child {
        margin-bottom: 0;
    }

.err-detail-icon {
    color: #ef4444; /* Màu đỏ cảnh báo giống trên dashboard */
    margin-right: 15px;
    margin-top: 2px;
}

.err-detail-text h4 {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 600;
}

.err-detail-text p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Buttons */
.err-btn-group {
    display: flex;
    gap: 15px;
}

.err-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.err-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

    .err-btn-primary:hover {
        background-color: #1d4ed8;
        transform: translateY(-1px);
    }

.err-btn-secondary {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    flex: 1;
}

    .err-btn-secondary:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b;
    }

/* Responsive Design */
@media (max-width: 850px) {
    .err-card {
        flex-direction: column;
    }

    .err-panel-left {
        padding: 40px 30px;
        min-height: 300px;
    }

    .err-hero h1 {
        font-size: 4.5rem;
    }

    .err-panel-right {
        padding: 40px 30px;
    }

    .err-btn-group {
        flex-direction: column;
    }
}
/* Active cho Menu chính */
.nav-item.nav-active {
    background-color: #eff6ff !important; /* blue-50 */
    color: #2563eb !important; /* blue-600 */
    box-shadow: inset 4px 0 0 -1px #2563eb; /* Đường kẻ dọc xanh bên trái */
}

    .nav-item.nav-active i {
        color: #2563eb !important;
    }

/* Active cho Menu con (Submenu) */
.nav-sub-active {
    color: #2563eb !important;
    background-color: #f8faff !important;
    font-weight: 600;
}

    .nav-sub-active span {
        background-color: #2563eb !important; /* Chấm tròn chuyển sang xanh */
        box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
    }

/* Tùy chỉnh thanh cuộn Sidebar cho tinh tế */
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}


/* LoadingAPIOverlay */
@keyframes loading-slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

.animate-loading-slide {
    animation: loading-slide 1.5s infinite linear;
}

.animate-bounce-soft {
    animation: bounce 2s infinite;
}

/* Hiệu ứng Checkbox custom */
.checkbox-custom input:checked ~ .checkmark {
    background-color: #2563eb;
    border-color: #2563eb;
}

    .checkbox-custom input:checked ~ .checkmark:after {
        display: block;
    }


.input-focus-ring {
    transition: all 0.2s ease;
}

    .input-focus-ring:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }

/* Hiệu ứng chọn thứ */
.day-tab-active {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.input-focus-active:focus-within {
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.row-not-eating {
    background-color: #f8fafc !important;
    opacity: 0.6;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}


input[type="month"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

.btn-meal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

}