.app {
    display: grid;
    grid-template-columns: 270px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "header header"
        "sidebar main-content"
        "footer footer";
    min-height: 100vh;
}
body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.app {
    height: 100svh;
    overflow: hidden;
}

.header {
    grid-area: header;
    background-color: #212529;
    color: white;
    padding: 0.5rem 1rem;
}

.sidebar {
    grid-area: sidebar;
    background-color: #1a1d20;
    padding: 1rem;
}

.main-content {
    grid-area: main-content;
    background-color: #fff;
    overflow: auto;
    padding: 0.5rem;
}

.footer {
    grid-area: footer;
    background-color: #212529;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #7a7a7a;
}

.nav-pills .nav-link {
    color: #ffffffe1;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}
.nav-pills .nav-link:hover {
    background: rgba(0,0,0,0.5);
}
/* Quick Actions Dropdown Styles */
.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 0.375rem;
}

.flatpickr-day.selected {
    background: #0d6efd;
    border-color: #0d6efd;
}

.flatpickr-day.selected:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.flatpickr-input[readonly] {
    background-color: #fff;
}

/* Icon Utilities */
.btn i {
    vertical-align: middle;
}

.nav-link i {
    font-size: 1.1em;
    width: 1.5em;
    vertical-align: -0.125em;
}

/* Typography */
.h1, h1 {
    font-size: 1.5rem;
}
body, .form-select, .form-control {
    font-size: 15px;
}
/* Misc */
.main-content > .container-fluid {
    padding: 0;
}
.card {
    border-radius: 0;
}
a {
    text-decoration: none;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
 ::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}
 ::-webkit-scrollbar-thumb {
    background-color: #1b1e21;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #f2600c;
}
 ::-moz-scrollbar {
    width: 5px;
}
 ::-moz-scrollbar-track {
    background-color: #f1f1f1;
}
 ::-moz-scrollbar-thumb {
    background-color: #1b1e21;
}
::-moz-scrollbar-thumb:hover {
    background-color: #f2600c;
}

.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: 0.5rem 3.3rem 0.5rem 1.1rem !important;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    line-height: 1.5;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 1rem;
    width: 2rem;
}
.card-header h5 {
    font-size: 1.2rem;
}

.card-header {
    background: #212529;
    border-radius: 0 !important;
    color: #fff;
}
.btn-group form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.dataTables_paginate * {
    font-size: 0.85rem;
}

/* Tabulator Custom Styles */
.tabulator {
    border: none;
    background-color: transparent;
    font-size: 15px;
}

.tabulator-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.tabulator-col {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 10px;
}

.tabulator-col-content {
    padding: 8px;
}

.tabulator-cell {
    padding: 10px 8px;
    border-right: 1px solid #f0f0f0;
}

.tabulator-row {
    border-bottom: 1px solid #dee2e6;
}

.tabulator-row.tabulator-row-even {
    background-color: #f8f9fa;
}

.tabulator-row:hover {
    background-color: #e9ecef;
}

.tabulator-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.tabulator-paginator {
    padding: 10px;
}

.tabulator-page {
    margin: 0 2px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0d6efd;
    border-radius: 3px;
}

.tabulator-page.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.tabulator-page:not(.disabled):hover {
    background-color: #e9ecef;
    cursor: pointer;
}

.tabulator-page.disabled {
    color: #6c757d;
    pointer-events: none;
}

#taskFilter {
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Sidebar Menu Groups */
.menu-group {
    margin-bottom: 0.5rem;
}

.menu-group-header {
    color: #ffffffe1;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.menu-group-header.active {
    background-color: #0d6efd;
    color: white;
}

.menu-group-header:hover:not(.active) {
    background: rgba(0,0,0,0.5);
}

.menu-group-header i {
    font-size: 1.1em;
    width: 1.5em;
    vertical-align: -0.125em;
}

.menu-group-items {
    border-left: 1px solid rgba(255,255,255,0.18) !important;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

.nav-link.sub-link {
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.nav-link.sub-link i {
    font-size: 0.9em;
    width: 1em;
}

.nav-link.sub-link.active {
    background-color: rgba(13, 110, 253, 0.7);
}

.nav-link.sub-link:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.3);
}
.input-group-text {
    font-size: 1em;
}