/* Global Styles */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a3d7a;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --gray-100: #f8f9fc;
    --gray-200: #eaecf4;
    --gray-300: #dddfeb;
    --gray-400: #d1d3e2;
    --gray-500: #b7b9cc;
    --gray-600: #858796;
    --gray-700: #6e707e;
    --gray-800: #5a5c69;
    --gray-900: #3a3b45;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --sidebar-active: #667eea;
    --sidebar-text: #ecf0f1;
    --sidebar-border: #34495e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-text);
}

.sidebar-brand i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--sidebar-active);
}

.sidebar.collapsed .sidebar-brand span {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-active);
}

.sidebar-menu {
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    /*height: calc(100vh - 225px);*/
    height: auto;
}

.sidebar-menu .nav-item {
    margin: 0.25rem 0;
}

.sidebar-menu .nav-link {
    color: var(--sidebar-text);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.sidebar-menu .nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
    transform: translateX(5px);
}

.sidebar-menu .nav-link.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.sidebar-menu .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
}

.sidebar-menu .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu .nav-link span {
    font-weight: 500;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
    background: rgba(0, 0, 0, .2);
    transition: all .3s ease-in-out;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--sidebar-active);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.sidebar.collapsed .user-info {
    display: none;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--danger-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.sidebar.collapsed .logout-btn {
    padding: 0.75rem;
    font-size: 1.2rem;
}

.sidebar.collapsed .logout-btn span {
    display: none;
}

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Navigation */
.navbar-dark.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 2px 10px rgba(118, 75, 162, 0.3);
}

.sidebar-toggle-btn {
    margin-right: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: block !important;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sidebar-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.navbar-nav .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
}

/* Page Header */
.page-header {
    padding: 1rem 0;
}

.page-header h1 {
    color: var(--gray-800);
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

/* .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
} */
.dropdown-toggle::after{
    display: none;
}
.card-header {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-bottom: 1px solid var(--gray-300);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 700;
}

/* Stats Cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.7rem;
}

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

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

/* Activity Items */
.activity-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background-color: var(--gray-100);
}

.activity-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #17a673 100%);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2a96a5 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #be2617 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-hover .card-body {
    position: relative;
    z-index: 2;
}

/* Stats Cards Redesign */
.stats-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-card-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #17a673 100%);
}

.stats-card-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2a96a5 100%);
}

.stats-card-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
}

.stats-card .card-body {
    position: relative;
    z-index: 2;
}

.stats-card .text-white-50 {
    opacity: 0.8;
}

/* Performance Metrics Styles */
.metric-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.5) 0%, rgba(234, 236, 244, 0.3) 100%);
    border: 1px solid rgba(221, 223, 235, 0.3);
}

.metric-item:hover {
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.8) 0%, rgba(234, 236, 244, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.metric-item .progress {
    background-color: rgba(221, 223, 235, 0.5);
    border-radius: 1rem;
    overflow: hidden;
}

.metric-item .progress-bar {
    border-radius: 1rem;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.metric-item .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Quick Insights Styles */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.insight-item {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.8) 0%, rgba(234, 236, 244, 0.6) 100%);
    border: 1px solid rgba(221, 223, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.insight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(118, 75, 162, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-item:hover::before {
    opacity: 1;
}

.insight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(248, 249, 252, 1) 0%, rgba(234, 236, 244, 0.8) 100%);
}

.insight-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.insight-item:hover .insight-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.insight-item h6 {
    transition: color 0.3s ease;
}

.insight-item:hover h6 {
    color: var(--primary-color) !important;
}

/* Responsive adjustments for insights */
@media (max-width: 768px) {
    .insight-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .insight-item {
        padding: 1.5rem 1rem;
    }
    .gall{
        width: calc((100% - 1.3rem) / 2);
    }
}
@media (max-width: 575px) {
    
    .gall{
        width: 100%;
    }
    .navbar-brand{
        font-size: 18px;
    }
}

/* Chart Styles */
.card-body canvas {
    min-height: 300px;
    max-height: 400px;
}

#revenueChart, #trafficChart {
    width: 100% !important;
    height: 100% !important;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    /* border-top: 1px solid var(--gray-400);
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
}

.footer p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Login Page Footer */
.login-page .footer {
    background: transparent;
    border-top: none;
}

.login-page .footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25);
    transform: translateY(-1px);
}

/* Select Dropdown Styling */
select.form-control {
    color: var(--gray-700);
    background-color: #fff;
    cursor: pointer;
    padding: 0 6px;
}

select.form-control option {
    color: var(--gray-700);
    background-color: #fff;
    padding: 0.5rem;
}

select.form-control:focus {
    color: var(--gray-700);
    background-color: #fff;
}

select.form-control:hover {
    border-color: var(--primary-color);
}

/* Ensure select dropdowns are visible */
select.form-control:not([size]) {
    height: auto;
    min-height: 38px;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.custom-file-label {
    border-radius: 0.5rem;
    border: 2px solid var(--gray-300);
    padding: 5px 15px;
}
.dataTables_length .custom-select{
    width: 100px!important;
}
div.dataTables_wrapper div.dataTables_filter input{
    padding: 20px;
}
/* Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-200);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-100);
}

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Modal Styles */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
}

.demo-credentials {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Eye Icon Button Styling */
.input-group-append .btn {
    border-left: 0;
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    transition: all 0.3s ease;
}

.input-group-append .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.input-group-append .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem!important;
    }
    .login-logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .login-card {
        margin: 1rem;
    }
    
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-cards .col-xl-3 {
        margin-bottom: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-icon {
        margin: 0 auto 0.5rem auto;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-menu .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Animation Classes */
.animated--fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sidebar-border);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--sidebar-hover);
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--gray-700);
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

/* Form Section Headers */
.form-section-header {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

/* File Upload Styling */
.custom-file-input:lang(en)~.custom-file-label::after {
    content: "Browse";
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}
.custom-file-input{
    cursor: pointer;
}
/* Enhanced Button Groups */
.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Enhanced Table Actions */
.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin: 0 0.125rem;
    padding: 0.375rem 0.5rem;
}

/* Enhanced Form Validation */
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231cc88a' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23e74a3b' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23e74a3b' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar Toggle Animation */
.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Hover Effects for Sidebar Items */
/* .sidebar-menu .nav-link:hover i {
    transform: scale(1.1);
    color: var(--sidebar-active);
} */

.sidebar-menu .nav-link.active i {
    color: white;
}

/* Sidebar Brand Hover Effect */
.sidebar-brand:hover {
    color: var(--sidebar-active);
}

.sidebar-brand:hover i {
    transform: rotate(5deg);
}
.sidebar-brand *{
    transition: all .2s ease-in-out;
}
/* Responsive Sidebar Behavior */
@media (min-width: 992px) {
    .sidebar-toggle-btn {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar-toggle-btn {
        display: block !important;
    }
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar-overlay.show {
        display: block;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gray-700);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: var(--gray-900);
    text-decoration: none;
    background-color: var(--gray-100);
}

.dropdown-menu .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: var(--primary-color);
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--gray-300);
}

/* Dropdown positioning */
.dropdown {
    position: relative;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

/* Animated dropdown */
.dropdown-menu.animated--fade-in {
    animation: fadeIn 0.15s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dropdowns are visible */
.no-arrow .dropdown-menu {
    margin-top: 0.5rem;
}

/* Card header dropdown positioning */
.card-header .dropdown {
    position: relative;
}

.card-header .dropdown-menu {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    min-width: 8rem;
}

/* Hover effects for better UX */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

#dataTable_wrapper .row{
    margin-top:15px;
}

/* loader */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("../images/loader.gif") center no-repeat;
}

/* select2 dropdown search */
.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 7px !important;
}