:root {
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, .10), 0 2px 4px rgba(15, 23, 42, .06);
}

body {
    background-color: #f4f6f9;
    font-family: 'Kanit', sans-serif;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.card,
.bg-white.border.rounded,
.border.rounded.bg-white,
form.bg-white.border.rounded {
    box-shadow: var(--shadow-sm);
    border-radius: .75rem !important;
}

.card-summary {
    border: none;
    border-left: 4px solid currentColor;
    box-shadow: var(--shadow-md);
}

.card-summary .card-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.text-income {
    color: #198754;
}

.text-expense {
    color: #dc3545;
}

.btn {
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.btn:active {
    transform: translateY(0);
}

.table-responsive,
table.table-bordered {
    border-radius: .75rem;
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, .04);
}

.dropdown-menu {
    box-shadow: var(--shadow-md);
    border-radius: .75rem;
    border: none;
}

.thai-date,
.thai-month {
    position: relative;
}

.thai-date-display {
    cursor: pointer;
    background-color: #fff;
}

.thai-date-popup,
.thai-month-popup {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    z-index: 1050;
    background: #fff;
    padding: .75rem;
    box-shadow: var(--shadow-md);
    border-radius: .75rem;
    width: 280px;
}

.thai-date-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-weight: 600;
}

.thai-date-popup-label {
    font-size: .95rem;
}

.thai-date-nav {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: .4rem;
    cursor: pointer;
}

.thai-date-nav:hover {
    background-color: #f1f3f5;
}

.thai-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.thai-date-weekday {
    font-size: .75rem;
    color: #6c757d;
    padding: .25rem 0;
}

.thai-date-day {
    border: none;
    background: transparent;
    padding: .35rem 0;
    border-radius: .4rem;
    cursor: pointer;
    font-size: .85rem;
}

.thai-date-day:hover {
    background-color: #f1f3f5;
}

.thai-date-day.today {
    font-weight: 700;
    color: #0d6efd;
}

.thai-date-day.selected {
    background-color: #0d6efd;
    color: #fff;
}

.thai-date-popup-footer {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid #e9ecef;
}

.thai-date-today-btn,
.thai-date-clear-btn {
    border: none;
    background: transparent;
    color: #0d6efd;
    font-size: .8rem;
    cursor: pointer;
    padding: .2rem .4rem;
}

.thai-date-today-btn:hover,
.thai-date-clear-btn:hover {
    text-decoration: underline;
}

.thai-month-popup {
    width: 220px;
}

.thai-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.thai-month-cell {
    border: none;
    background: transparent;
    padding: .5rem 0;
    border-radius: .4rem;
    cursor: pointer;
    font-size: .85rem;
}

.thai-month-cell:hover {
    background-color: #f1f3f5;
}

.thai-month-cell.selected {
    background-color: #0d6efd;
    color: #fff;
}
