:root {
    --primary-color: #4f46e5; /* Indigo */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #111827; /* Deep dark blue */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
.app-wrapper {
    min-height: 100vh;
    width: 100%;
}

.sidebar-modern {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg) !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
}

.sidebar-link {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-link.active {
    background-color: var(--primary-color);
}

.content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

/* Topbar Styles */
.topbar {
    height: 70px;
    z-index: 1030;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-actions .dropdown-toggle::after {
    display: none;
}

/* Collapsed Sidebar Styles */
.app-wrapper.collapsed .sidebar-modern {
    width: var(--sidebar-collapsed-width);
}

.app-wrapper.collapsed .content-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

.app-wrapper.collapsed .sidebar-text,
.app-wrapper.collapsed .sidebar-brand {
    display: none !important;
}

.app-wrapper.collapsed #sidebar > div:first-child {
    flex-direction: column;
    justify-content: center !important;
    gap: 1rem;
}

.app-wrapper.collapsed .nav-link {
    text-align: center;
    padding: 0.75rem 0;
    display: flex;
    justify-content: center;
}

.app-wrapper.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 1.25rem;
}

.app-wrapper.collapsed .btn-outline-light {
    padding: 0.375rem 0;
    justify-content: center;
}

.app-wrapper.collapsed .btn-outline-light i {
    margin-right: 0 !important;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .sidebar-modern {
        transform: translateX(-100%);
    }

    .sidebar-modern.show {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.5);
        z-index: 1030;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* Premium Component Aesthetics */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Offcanvas Form Slider Animation */
.offcanvas-end {
    width: 400px;
    border-left: none;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

/* Advanced DataTables UI */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 0.375rem 1rem;
    border: 1px solid #d1d5db;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
}

table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.02);
}

table.dataTable.table-hover > tbody > tr:hover > * {
    background-color: rgba(79, 70, 229, 0.04);
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
}

.dataTables_wrapper .pagination .page-link {
    color: #374151;
    border: none;
    margin: 0 2px;
    border-radius: 6px;
}

.dataTables_wrapper .pagination .page-link:hover {
    background-color: #f3f4f6;
}

table.dataTable thead th {
    border-bottom: 2px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

table.dataTable td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
@media (max-width: 767.98px) {
    .logo-responsive-mobile {
        max-height: none !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
