@import url("custom_datepicker.css");
@import url("custom_font_awesome.css");
@import url("navigation_toolbox.css");

/* Reset CSS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #387A3A;
    --success: #1dbc60;
    --danger: #e04f5f;
    --warning: #ffae42;
    --info: #17a2b8;
    --dark: #4e4e4e;
    --light: #f8f9fa;

    /* Existing Color Variables */
    --primary-color: #387A3A;
    --primary-color-rgb: 56, 122, 58;
    --secondary-color: #DFF0DF;
    --accent-color: #B8D8B8;
    --text-primary: #2C3E2C;
    --text-secondary: #6B8E6B;
    --success-color: #487548;
    --error-color: #bd5b5b;
    --warning-color: #E6C664;
    --border-color: #e3e3e3;
    --shadow-color: rgba(56, 122, 58, 0.15);
    --contrast-primary: #A73838;
    --contrast-secondary: #703070;
    --contrast-error-color: #fff;
    --contrast-warning-color: #647BE6;

    --bg-success-light: #a5d5a5;
    --text-success-dark: #004d15;

    --bg-danger-light: #f8d7da;
    --text-danger-dark: #9f0c1a;

    /* New Color Variables for Better Contrast and Depth */
    --header-bg: #2E6A2E;
    /* Darker header background */
    --hover-bg: #CDE8CD;
    /* Lighter hover background */
    --active-bg: #3A8E3C;
    /* Slightly darker active state */
    --disabled-bg: #E0E8E0;
    /* Subtle disabled background */
    --highlight-color: #FFF5E1;
    /* Soft highlight for current day */

    /* Existing Font Variables */
    --font-primary: 'Quicksand', 'Segoe UI', Tahoma, Geneva, sans-serif;
    --font-size-base: 16px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --line-height-base: 1.6;

    /* Shadow */
    --shadow-card-bottom: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-card-around: 0 0 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.05);

    /* Existing Spacing Variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --input-indent: 5px;

    /* New Spacing Variables */
    --cell-padding: 0.375rem;
    /* Enhanced padding for cells */
    --header-padding: 0.75rem;
    /* Increased header padding */
    --nav-button-size: 1.5rem;
    /* Size for prev/next buttons */

    /* Existing Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Existing Transition */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Existing Container Width */
    --container-max-width: 1200px;

    /* Existing Button Spacing */
    --button-padding-base: 6px;

    /* New Variables for Datepicker */
    --datepicker-width: 280px;
    /* Fixed width for consistency */
    --datepicker-z-index: 1000;
    /* Ensure it stays above other elements */
    --day-border-width: 1px;
    /* Border width for day cells */

    --transition-xs: 0.2s;
    --transition-sm: 0.3s;

    /* Base */
}

/* Base Styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: #f8f7fa;
    font-size: var(--font-size-xs);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-xs);
}

form {
    margin: 0 auto;
    border-radius: var(--radius-md);
}

label {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

hr {
    border-color: var(--border-color);
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
textarea,
select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

table.adminlist td input[type="number"] {
    padding-left: 2px;
    padding-right: 0;
}

/* Style the date input */
input.dateTime {
    padding: var(--spacing-xs) 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Add the custom calendar icon */
input.dateTime::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
}

/* Style for the select dropdown */
select {
    appearance: none;
    /* Remove default styling */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);

    /* SVG background for the arrow */
    background-image: url("/public/icon/arrow-down.svg");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 14px;
    padding-right: 15px;
}

/* Style when the select is focused */
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    outline: none;
}

/* Style for the dropdown options */
select option {
    color: var(--text-primary);
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-family: var(--font-primary);
    transition: background-color var(--transition-fast);
}

/* Highlight option on hover */
select option:hover {
    background-color: var(--accent-color);
}

/* Style the dropdown itself (for better browsers) */
select::-webkit-scrollbar {
    width: 6px;
}

select::-webkit-scrollbar-thumb {
    background-color: var();
    border-radius: var(--radius-sm);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

/* Flex Utilities */
.d-flex {
    display: flex;
}

.flex {
    display: flex;
    gap: 4px;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.justify-between {
    justify-content: space-between;
}

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

/* Common Justify Content Utilities */
.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-col-reverse {
    flex-direction: column-reverse;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-end {
    justify-content: flex-end;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

/* Common Align Items Utilities */
.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-baseline {
    align-items: baseline;
}

.align-stretch {
    align-items: stretch;
}

/* Border radius */
.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .grid-cols-2-sm {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-cols-3-md {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-4-lg {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Buttons */
button:hover {
    cursor: pointer;
    opacity: 0.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.btn-base {
    background-color: transparent;
    color: inherit;
    width: 100%;
    border: 1px solid red;
    border-radius: 6px;
    padding: 1px 10px;
    white-space: nowrap;
}

/* Primary */
.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.8;
}

/* Success */
.btn-success {
    background-color: var(--success);
    color: #fff;
}

.btn-success:hover {
    background-color: #18a754;
}

/* Danger */
.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c93c4b;
}

/* Warning */
.btn-warning {
    background-color: var(--warning);
    color: #fff;
}

.btn-warning:hover {
    background-color: #e89c35;
}

/* Info */
.btn-info {
    background-color: var(--info);
    color: #fff;
}

.btn-info:hover {
    background-color: #148ea1;
}

/* Dark */
.btn-dark {
    background-color: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background-color: #3c3c3c;
}

/* Light */
.btn-light {
    background-color: var(--light);
    color: #333;
    border: 1px solid #dcdcdc;
}

.btn-light:hover {
    background-color: #e9ecef;
}

/* Outline Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid;
    padding: 8px 18px;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-outline-success {
    border-color: var(--success);
    color: var(--success);
}

.btn-outline-success:hover {
    background-color: var(--success);
    color: #fff;
}

.btn-outline-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: #fff;
}

.btn-outline-warning {
    border-color: var(--warning);
    color: var(--warning);
}

.btn-outline-warning:hover {
    background-color: var(--warning);
    color: #fff;
}

.btn-outline-info {
    border-color: var(--info);
    color: var(--info);
}

.btn-outline-info:hover {
    background-color: var(--info);
    color: #fff;
}

.btn-outline-dark {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-outline-dark:hover {
    background-color: var(--dark);
    color: #fff;
}

/* Rounded Buttons */
.btn-rounded {
    border-radius: 50px;
}

/* Soft Shadow */
.btn-shadow {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

/* Reset Button */
.button-reset,
input[type="reset"] {
    background-color: var(--error-color);
    color: var(--contrast-error-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    padding: var(--button-padding-base);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-normal), box-shadow var(--transition-fast);
    width: 75px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="reset"]:hover,
input[name="btnSearch"]:hover,
input[name="btnFind"]:hover {
    cursor: pointer;
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.button-reset:hover {
    background-color: darken(var(--error-color), 10%);
    box-shadow: 0 4px 6px var(--shadow-color);
    transform: translateY(-1px);
}

.button-reset:active {
    background-color: darken(var(--error-color), 15%);
}

/* Search Button */
.button-search,
input[name="btnSearch"],
.button-submit {
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    padding: var(--button-padding-base);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-normal), box-shadow var(--transition-fast);
    margin-right: 10px;
    margin-top: 10px;
    width: 75px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-search:hover {
    background-color: darken(var(--success-color), 10%);
    box-shadow: 0 4px 6px var(--shadow-color);
    transform: translateY(-1px);
}

.button-search:active {
    background-color: darken(var(--success-color), 15%);
}

/* Width utilities */
.w-0 {
    width: 0px;
}

.w-full {
    width: 100%;
}

.w-1_2 {
    width: 50%;
}

.w-1_3 {
    width: 33.333333%;
}

.w-2_3 {
    width: 66.666667%;
}

.w-1_4 {
    width: 25%;
}

.w-3_4 {
    width: 75%;
}

.w-1_5 {
    width: 20%;
}

.w-2_5 {
    width: 40%;
}

.w-3_5 {
    width: 60%;
}

.w-4_5 {
    width: 80%;
}

.w-auto {
    width: auto;
}

.w-50 {
    width: 50px;
}

.w-100 {
    width: 100px;
}

.w-200 {
    width: 200px;
}

.w-200-imp {
    width: 200px !important;
}

.w-300 {
    width: 300px;
}

.w-400 {
    width: 400px;
}

.w-500 {
    width: 500px;
}

/*! important */
.w-84-imp {
    width: 84px !important;
}

/* Height utilities */
.h-0 {
    height: 0px;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-100 {
    height: 100px;
}

.h-200 {
    height: 200px;
}

.h-300 {
    height: 300px;
}

.h-400 {
    height: 400px;
}

.h-500 {
    height: 500px;
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Badges */
.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #edf7f0;
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: #faeaea;
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.alert-warning {
    background-color: #fcf8e9;
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    background-color: white;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.navbar-link {
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    background-color: #f0f0f0;
    color: var(--text-secondary);
}

.footer-columns {
    display: grid;
    gap: var(--spacing-lg);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: 0 4px 6px var(--shadow-color);
}

.shadow-lg {
    box-shadow: 0 10px 15px var(--shadow-color);
}

/* Margin utilities */
.m-0 {
    margin: 0;
}

.mt-xs {
    margin-top: var(--spacing-xs);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.m-0 {
    margin: 0px;
}

.m-1 {
    margin: 4px;
}

.m-2 {
    margin: 8px;
}

.m-3 {
    margin: 12px;
}

.m-4 {
    margin: 16px;
}

.m-5 {
    margin: 20px;
}

/* Margin X-axis (left and right) */
.mx-0 {
    margin-left: 0px;
    margin-right: 0px;
}

.mx-1 {
    margin-left: 4px;
    margin-right: 4px;
}

.mx-2 {
    margin-left: 8px;
    margin-right: 8px;
}

.mx-3 {
    margin-left: 12px;
    margin-right: 12px;
}

.mx-4 {
    margin-left: 16px;
    margin-right: 16px;
}

.mx-5 {
    margin-left: 20px;
    margin-right: 20px;
}

/* Margin Y-axis (top and bottom) */
.my-0 {
    margin-top: 0px;
    margin-bottom: 0px;
}

.my-1 {
    margin-top: 4px;
    margin-bottom: 4px;
}

.my-2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.my-3 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.my-4 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.my-5 {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Margin Top */
.mt-0 {
    margin-top: 0px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-5 {
    margin-top: 20px;
}

/* Margin Right */
.mr-0 {
    margin-right: 0px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 12px;
}

.mr-4 {
    margin-right: 16px;
}

.mr-5 {
    margin-right: 20px;
}

/* Margin Bottom */
.mb-0 {
    margin-bottom: 0px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 20px;
}

/* Margin Left */
.ml-0 {
    margin-left: 0px;
}

.ml-1 {
    margin-left: 4px;
}

.ml-2 {
    margin-left: 8px;
}

.ml-3 {
    margin-left: 12px;
}

.ml-4 {
    margin-left: 16px;
}

.ml-5 {
    margin-left: 20px;
}

/* Padding utilities */
.p-0 {
    padding: 0;
}

.pt-xs {
    padding-top: var(--spacing-xs);
}

.pt-sm {
    padding-top: var(--spacing-sm);
}

.pt-md {
    padding-top: var(--spacing-md);
}

.pt-lg {
    padding-top: var(--spacing-lg);
}

.pt-xl {
    padding-top: var(--spacing-xl);
}

.pb-xs {
    padding-bottom: var(--spacing-xs);
}

.pb-sm {
    padding-bottom: var(--spacing-sm);
}

.pb-md {
    padding-bottom: var(--spacing-md);
}

.pb-lg {
    padding-bottom: var(--spacing-lg);
}

.pb-xl {
    padding-bottom: var(--spacing-xl);
}

/* Padding utilities */
.p-0 {
    padding: 0px;
}

.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

/* Padding X-axis (left and right) */
.px-0 {
    padding-left: 0px;
    padding-right: 0px;
}

.px-1 {
    padding-left: 4px;
    padding-right: 4px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.px-5 {
    padding-left: 20px;
    padding-right: 20px;
}

/* Padding Y-axis (top and bottom) */
.py-0 {
    padding-top: 0px;
    padding-bottom: 0px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-5 {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Padding Top */
.pt-0 {
    padding-top: 0px;
}

.pt-1 {
    padding-top: 4px;
}

.pt-2 {
    padding-top: 8px;
}

.pt-3 {
    padding-top: 12px;
}

.pt-4 {
    padding-top: 16px;
}

.pt-5 {
    padding-top: 20px;
}

/* Padding Right */
.pr-0 {
    padding-right: 0px;
}

.pr-1 {
    padding-right: 4px;
}

.pr-2 {
    padding-right: 8px;
}

.pr-3 {
    padding-right: 12px;
}

.pr-4 {
    padding-right: 16px;
}

.pr-5 {
    padding-right: 20px;
}

/* Padding Bottom */
.pb-0 {
    padding-bottom: 0px;
}

.pb-1 {
    padding-bottom: 4px;
}

.pb-2 {
    padding-bottom: 8px;
}

.pb-3 {
    padding-bottom: 12px;
}

.pb-4 {
    padding-bottom: 16px;
}

.pb-5 {
    padding-bottom: 20px;
}

/* Padding Left */
.pl-0 {
    padding-left: 0px;
}

.pl-1 {
    padding-left: 4px;
}

.pl-2 {
    padding-left: 8px;
}

.pl-3 {
    padding-left: 12px;
}

.pl-4 {
    padding-left: 16px;
}

.pl-5 {
    padding-left: 20px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background-color: white;
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: -2px 0 5px var(--shadow-color);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .navbar-overlay.active {
        display: block;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
.dark-mode {
    --primary-color: #8eb3a3;
    --secondary-color: #121212;
    --accent-color: #4a4a4a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

.dark-mode body {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

.dark-mode .card,
.dark-mode .navbar {
    background-color: #1e1e1e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .footer {
    background-color: #1a1a1a;
}

/* Ellipsis for 2 lines */
.ellipsis-2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ellipsis for 3 lines */
.ellipsis-3 {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ellipsis for 4 lines */
.ellipsis-4 {
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-top-button {
    position: fixed;
    bottom: 44px;
    right: 0px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-button.visible {
    opacity: 1;
    visibility: visible;
}

.invisible {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-button:hover {
    transform: scale(1.1);
}

.custom-dialog-class {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-dialog-class .ui-dialog-titlebar {
    display: none !important;
}

.custom-modal-dialog .confirm-content {
    display: flex;
    align-items: center;
    padding: 20px;
}

.custom-dialog-class .confirm-icon {
    width: 60px;
    min-width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.custom-dialog-class .confirm-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    stroke-width: 2;
}

.custom-dialog-class .confirm-text h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.custom-dialog-class .confirm-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.custom-dialog-class .ui-dialog-buttonpane {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    text-align: right;
}

.custom-dialog-class .ui-dialog-buttonpane button {
    margin: 0 5px;
    padding: 2px 11px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-dialog-class .btn-confirm {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

.custom-dialog-class .btn-confirm:hover {
    opacity: 0.8;
}

.custom-dialog-class .btn-cancel {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
}

.custom-dialog-class .btn-cancel:hover {
    background-color: #f9fafb !important;
}

.custom-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: Arial, sans-serif;
    max-width: 400px;
    text-align: center;
}

.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.custom-dialog button {
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.custom-dialog button.ok {
    background: #007bff;
    color: white;
}

.custom-dialog button.cancel {
    background: #6c757d;
    color: white;
}

/*------- JQuery-UI Edit -----------*/
.ui-widget{
    font-family:Tahoma,Verdana,Arial,sans-serif;
    font-size:1em
}
.ui-widget .ui-widget{
    font-size:1em
}
.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{
    font-family:Tahoma,Verdana,Arial,sans-serif;
    font-size:1em
}
.ui-widget-content {
    border: none;
}
.ui-widget-header {
    background: none;
    border-color: #DDDDDD;
    border-width:0 0 1px 0;
    border-radius: 0
}
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color:#387A3A;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    background: #F0F3F0
}
.ui-tabs .ui-tabs-panel {
    padding: 1em 0;
}

.ui-dialog a:hover {
    opacity: 0.7;
}

.ui-dialog {
    max-height: calc(100vh - 100px) !important; /* Chiều cao tối đa */
    overflow: hidden; /* Ngăn cuộn toàn bộ dialog */
}

.ui-dialog .ui-dialog-content {
    max-height: calc(100vh - 195px) !important; /* Giữ khoảng trống cho header và footer */
    overflow-y: auto; /* Bật thanh cuộn dọc */
    scrollbar-width: thin; /* Thanh cuộn nhỏ (Firefox) */
}

.ui-dialog .ui-dialog-content::-webkit-scrollbar {
    width: 6px; /* Kích thước thanh cuộn nhỏ */
}

.ui-dialog .ui-dialog-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3); /* Màu của thanh cuộn */
    border-radius: 3px; /* Bo góc thanh cuộn */
}

.ui-dialog.ui-widget .dateTime{
    width: 84px;
}

.ui-dialog .ui-dialog-title {
    float: left;
    white-space: nowrap;
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.ui-dialog table.adminlist tbody tr .key {
    font-weight: 500;
}

.ui-dialog table .row-key {
}

.ui-dialog input[type="text"], .ui-dialog select{
    width: 173px;
}

.ui-dialog select.operators{
    width: 50px;
}

.ui-dialog .select2-container .select2-selection--single
.ui-dialog .select2-container
{
    width: 173px;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--border-color)!important;
    border-radius: var(--radius-md)!important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid var(--border-color);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid var(--border-color);
}
/*------- End JQuery-UI Edit --------*/
