/* Modern UI Styles for Ihsan Express */
:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #1e1e2d;
    --light-color: #f8f9fc;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --glass-bg: rgba(30, 30, 45, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --light-color: #1a1a2e;
}

html[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e9ecef;
    background-image: url('/images/Refinery-CNG-Tankers-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

html[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

@media (max-width: 768px) {
    html[data-theme="dark"] body {
        background-attachment: scroll;
    }
}

/* Dark Theme - Cards */
html[data-theme="dark"] .card {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .card-header {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .card-body {
    background-color: rgba(33, 37, 41, 0.95) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .card.bg-light,
html[data-theme="dark"] .bg-light {
    background-color: rgba(52, 58, 64, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modern-card {
    background: rgba(33, 37, 41, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modern-card .card-header {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modern-card .card-body {
    color: #e9ecef !important;
}

html[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Dark Theme - Text Colors */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-title *,
html[data-theme="dark"] p,
html[data-theme="dark"] .card-text,
html[data-theme="dark"] .card-body *,
html[data-theme="dark"] .card-header *,
html[data-theme="dark"] span,
html[data-theme="dark"] div {
    color: #e9ecef !important;
}

html[data-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-black {
    color: #e9ecef !important;
}

/* Dark Theme - Forms */
html[data-theme="dark"] .form-control {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9ecef;
}

html[data-theme="dark"] .form-control:focus {
    background-color: #212529;
    border-color: #86b7fe;
    color: #e9ecef;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

html[data-theme="dark"] .form-select {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9ecef;
}

html[data-theme="dark"] .form-select:focus {
    background-color: #212529;
    border-color: #86b7fe;
    color: #e9ecef;
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] label {
    color: #e9ecef;
}

/* Dark Theme - Tables */
html[data-theme="dark"] .table {
    background-color: rgba(33, 37, 41, 0.95) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .table th {
    background-color: rgba(52, 58, 64, 0.95) !important;
    color: #e9ecef !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .table td {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .table td *,
html[data-theme="dark"] .table th * {
    color: #e9ecef !important;
}

html[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #e9ecef !important;
}

/* Dark Theme - Links */
html[data-theme="dark"] a {
    color: #86b7fe !important;
}

html[data-theme="dark"] a:hover {
    color: #a5c9fe !important;
}

/* Dark Theme - Sidebar */
html[data-theme="dark"] .sidebar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .sidebar .nav-link {
    color: #e9ecef;
}

html[data-theme="dark"] .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #86b7fe;
}

html[data-theme="dark"] .sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

html[data-theme="dark"] .sidebar-heading {
    color: #adb5bd;
}

/* Dark Theme - Dropdowns */
html[data-theme="dark"] .dropdown-menu {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .dropdown-item {
    color: #e9ecef;
}

html[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #86b7fe;
}

/* Dark Theme - Alerts */
html[data-theme="dark"] .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
    color: #75b798;
}

html[data-theme="dark"] .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f1aeb5;
}

html[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffda6a;
}

html[data-theme="dark"] .alert-info {
    background-color: rgba(13, 202, 240, 0.2);
    border-color: rgba(13, 202, 240, 0.3);
    color: #86cfda;
}

/* Dark Theme - Badges */
html[data-theme="dark"] .badge {
    color: #fff !important;
}

html[data-theme="dark"] .bg-label-primary {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #86b7fe !important;
}

html[data-theme="dark"] .bg-label-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #75b798 !important;
}

html[data-theme="dark"] .bg-label-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #f1aeb5 !important;
}

html[data-theme="dark"] .bg-label-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a !important;
}

html[data-theme="dark"] .bg-label-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    color: #86cfda !important;
}

/* Dark Theme - Top Navigation */
html[data-theme="dark"] .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .navbar-nav .nav-link {
    color: #e9ecef !important;
}

/* Dark Theme - General text inheritance */
html[data-theme="dark"] {
    color: #e9ecef;
}

html[data-theme="dark"] main {
    color: #e9ecef;
}

html[data-theme="dark"] small {
    color: #adb5bd !important;
}

html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .fw-bold,
html[data-theme="dark"] .fw-semibold {
    color: #e9ecef !important;
}

/* Dark Theme - Override Bootstrap default white backgrounds */
html[data-theme="dark"] .bg-white {
    background-color: rgba(33, 37, 41, 0.95) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .text-dark {
    color: #e9ecef !important;
}

html[data-theme="dark"] .text-black {
    color: #e9ecef !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    background-image: url('/images/Refinery-CNG-Tankers-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Fix background attachment for mobile performance */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

/* Glass morphism effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    padding: 0;
}

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

        .sidebar.collapsed .sidebar-text {
            display: none;
        }

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

    .brand:hover {
        transform: translateY(-1px);
    }

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    margin-bottom: 4px;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
        transition: left 0.5s;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background-color: rgba(67, 97, 238, 0.05);
        color: var(--primary-color);
        border-left-color: var(--primary-light);
        transform: translateX(4px);
    }

    .nav-link.active {
        background: linear-gradient(90deg, rgba(67, 97, 238, 0.1) 0%, rgba(255,255,255,0) 100%);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            right: 1rem;
            width: 6px;
            height: 6px;
            background: var(--primary-color);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.nav-icon {
    font-size: 1.3rem;
    width: 24px;
    margin-right: 12px;
    text-align: center;
    transition: var(--transition);
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 1.5rem 1.5rem 0.5rem;
    color: #8a92a6;
    position: relative;
}

    .sidebar-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1.5rem;
        right: 1.5rem;
        height: 1px;
        background: linear-gradient(90deg, var(--glass-border), transparent);
    }

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
    background: transparent;
}

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

.top-header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.toggle-sidebar {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-sidebar:hover {
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--primary-color);
        transform: rotate(90deg);
    }

.page-title {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    font-size: 1.5rem;
}

.user-dropdown .dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-height: 44px;
}

    .user-dropdown .dropdown-toggle:hover {
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--primary-color);
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

    .dropdown-item:hover {
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .dropdown-item i {
        width: 20px;
        margin-right: 8px;
    }

.page-content {
    padding: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-buttons .btn {
    border-radius: var(--border-radius);
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .auth-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* Footer */
.main-footer {
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Card Enhancements */
.modern-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

    .modern-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .modern-card .card-header {
        background: transparent;
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem;
    }

    .modern-card .card-body {
        padding: 1.5rem;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

        .sidebar.mobile-open {
            transform: translateX(0);
        }

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

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 999;
        display: none;
    }

        .sidebar-backdrop.show {
            display: block;
        }

    .page-content {
        padding: 1rem;
    }

    .top-header {
        padding: 0 1rem;
    }
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(67, 97, 238, 0.3);
    border-radius: 3px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(67, 97, 238, 0.5);
    }

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .theme-toggle:hover {
        background-color: rgba(67, 97, 238, 0.1);
        color: var(--primary-color);
        transform: rotate(15deg);
    }

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--error-color);
    color: white;
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    line-height: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}











/* Global Styles */
/*body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    background-image: url('/images/Refinery-CNG-Tankers-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}*/

/* Fix background attachment for mobile performance */
/*@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: -1;
}*/

/* Sidebar Styles */
/*.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    min-height: 100vh;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

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

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        position: static;
        height: auto;
        min-height: 100vh;
    }
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    margin-top: 1rem;
}*/

/* Main Content */
/*main {
    margin-left: 0;
    padding-top: 0;
}

@media (min-width: 768px) {
    main {
        margin-left: 240px;
    }
}*/

/* Avatar Styles */
/*.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    font-weight: 600;
}*/

/* Card Styles */
/*.card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}*/

/* Badge Styles */
/*.bg-label-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.bg-label-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.bg-label-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.bg-label-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

.bg-label-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}*/

/* Button Styles */
/*.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;*/ /* Touch-friendly minimum size */
/*min-width: 44px;
}

.btn:hover {
    transform: translateY(-1px);
}*/

/* Accessibility: Focus states */
/*.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.sidebar .nav-link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}*/

/* Form Styles */
/*.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}*/

/* Table Styles */
/*.table {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}*/

/* Alert Styles */
/*.alert {
    border-radius: 0.5rem;
    border: none;
}*/

/* Dropdown Styles */
/*.dropdown-menu {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;*/ /* Ensure dropdown appears above other elements */
/*}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}*/

/* Fix dropdown menus in tables - prevent clipping by overflow */
/*.table-responsive {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;*/ /* Allow vertical overflow for dropdowns */
/*}

.table-responsive .dropdown {
    position: static;*/ /* Change to static so dropdown can escape table overflow */
/*}

.table-responsive .dropdown-menu {
    position: absolute !important;
    right: 0;
    left: auto;
    z-index: 1050 !important;
    margin-top: 0.125rem;
    transform: translateY(0);*/ /* Ensure proper positioning */
/*}*/

/* For tables with dropdowns in the last column, align to the right */
/*.table td:last-child .dropdown-menu {
    right: 0;
    left: auto;
}*/

/* Ensure dropdown button is visible and clickable */
/*.table td .dropdown-toggle {
    position: relative;
    z-index: 1;
}*/

/* Fix button groups with flex-wrap to prevent overlapping */
/*.btn-group.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.btn-group.flex-wrap .btn {
    border-radius: 0.375rem;
    margin: 0;
    flex-shrink: 0;
}*/

/* Ensure button groups don't overflow their containers */
/*.btn-group {
    max-width: 100%;
}*/

/* Statistics Cards */
/*.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.stat-card .card-body {
        padding: 1.5rem;
    }

.stat-number {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    opacity: 0.9;
}*/

/* Custom height for forms */
/*.h-px-500 {
    height: 500px;
}*/

/* Text utilities */
/*.fw-semibold {
    font-weight: 600 !important;
}*/

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .sidebar {
        position: fixed;*/ /* Keep fixed for mobile overlay */
/*height: auto;
        padding-top: 48px;
        transform: translateX(-100%);*/ /* Hidden by default */
/*}

    .sidebar.show {
        transform: translateX(0);*/ /* Shown when toggled */
/*}

    main {
        margin-left: 0;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    .h-px-500 {
        height: 300px;
    }
}*/

/* Animation for loading states */
/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}*/

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}*/

/* Mobile sidebar backdrop */
/*.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}*/

/* Ensure action buttons are visible */
.btn-group {
    display: inline-flex !important;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.btn-group .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 0.375rem 0.75rem !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure table action buttons are visible */
table .btn-group,
table .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for btn-outline variants */
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Ensure icons in buttons are visible */
.btn i,
.btn .fas,
.btn .fa {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Carousel/Slider Styles */
/*.carousel {
    border-radius: 0.5rem;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 0.5rem;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    min-height: 300px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.carousel-caption {
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    text-align: left;
    padding: 1.5rem;
}

.carousel-caption h5 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators button.active {
    background-color: #fff;
}

@media (max-width: 768px) {
    .carousel-item img {
        max-height: 300px;
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .carousel-caption {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .carousel-caption h5 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .carousel-caption p {
        font-size: clamp(0.875rem, 3vw, 0.9rem);
    }
}*/

/* Mobile responsive adjustments */
/*@media (max-width: 767.98px) {
    .sidebar {
        width: 280px;
        z-index: 1001;
        position: fixed;*/ /* Ensure fixed positioning */
/*}

    main {
        margin-left: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    .h-px-500 {
        height: 300px;
    }

    .table-responsive {
        font-size: 0.875rem;
        -webkit-overflow-scrolling: touch;*/ /* Smooth scrolling on iOS */
/*overflow-y: visible;*/ /* Ensure dropdowns are visible on mobile */
/*}

    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        min-height: 44px;*/ /* Ensure touch-friendly size */
/*}*/

/* Improve touch targets on mobile */
/*.nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }*/

/* Better spacing for mobile cards */
/*.card {
        margin-bottom: 1rem;
    }*/

/* Improve form inputs on mobile */
/*.form-control,
    .form-select {
        font-size: 16px;*/ /* Prevents zoom on iOS */
/*min-height: 44px;
    }
}*/

/* ============================================
   DARK MODE THEME STYLES
   ============================================ */

/*.theme-dark {
    color-scheme: dark;
}

.theme-dark body {
    background-color: #1a1a1a;
    color: #e9ecef;
}

.theme-dark body::before {
    background-color: rgba(0, 0, 0, 0.6);
}*/

/* Sidebar Dark Mode */
/*.theme-dark .sidebar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.theme-dark .sidebar .nav-link {
    color: #e9ecef;
}

.theme-dark .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #86b7fe;
}

.theme-dark .sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.theme-dark .sidebar-heading {
    color: #adb5bd;
}*/

/* Cards Dark Mode */
/*.theme-dark .card {
    background-color: rgba(33, 37, 41, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.theme-dark .card-header {
    background-color: rgba(33, 37, 41, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.theme-dark .card-body {
    color: #e9ecef;
}*/

/* Fix bg-light cards in dark mode */
/*.theme-dark .card.bg-light,
.theme-dark .bg-light {
    background-color: rgba(52, 58, 64, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e9ecef !important;
}

.theme-dark .card.bg-light .card-body,
.theme-dark .bg-light .card-body {
    color: #e9ecef !important;
}

.theme-dark .card.bg-light h1,
.theme-dark .card.bg-light h2,
.theme-dark .card.bg-light h3,
.theme-dark .card.bg-light h4,
.theme-dark .card.bg-light h5,
.theme-dark .card.bg-light h6,
.theme-dark .card.bg-light p,
.theme-dark .card.bg-light span,
.theme-dark .card.bg-light .fw-bold,
.theme-dark .bg-light h1,
.theme-dark .bg-light h2,
.theme-dark .bg-light h3,
.theme-dark .bg-light h4,
.theme-dark .bg-light h5,
.theme-dark .bg-light h6,
.theme-dark .bg-light p,
.theme-dark .bg-light span,
.theme-dark .bg-light .fw-bold {
    color: #e9ecef !important;
}

.theme-dark .card.bg-light .text-muted,
.theme-dark .bg-light .text-muted {
    color: #adb5bd !important;
}*/

/* Fix bg-light placeholder areas */
/*.theme-dark .card-img-top.bg-light {
    background-color: rgba(52, 58, 64, 0.95) !important;
}

.theme-dark .card-img-top.bg-light .text-muted {
    color: #adb5bd !important;
}*/

/* Forms Dark Mode */
/*.theme-dark .form-control {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9ecef;
}

.theme-dark .form-control:focus {
    background-color: #212529;
    border-color: #86b7fe;
    color: #e9ecef;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.theme-dark .form-select {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9ecef;
}

.theme-dark .form-select:focus {
    background-color: #212529;
    border-color: #86b7fe;
    color: #e9ecef;
}

.theme-dark .form-label {
    color: #e9ecef;
}*/

/* Tables Dark Mode */
/*.theme-dark .table {
    background-color: rgba(33, 37, 41, 0.95) !important;
    color: #e9ecef;
}

.theme-dark .table th {
    background-color: rgba(52, 58, 64, 0.95) !important;
    color: #e9ecef !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .table td {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef !important;
}*/

/* Force table body background to be dark */
/*.theme-dark .table tbody {
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.theme-dark .table tbody tr {
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.theme-dark .table tbody tr td {
    background-color: rgba(33, 37, 41, 0.95) !important;
}*/

/* Force all text content in table cells to be visible */
/*.theme-dark .table td *:not(.badge):not(.btn) {
    color: #e9ecef !important;
}

.theme-dark .table td,
.theme-dark .table th {
    color: #e9ecef !important;
}*/

/* Ensure direct text nodes and all child elements are visible */
/*.theme-dark .table tbody td {
    color: #e9ecef !important;
}

.theme-dark .table tbody td > *:not(.badge):not(.btn) {
    color: #e9ecef !important;
}

.theme-dark .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-dark .table-hover tbody tr:hover td {
    color: #e9ecef !important;
}

.theme-dark .table-hover tbody tr:hover td > *:not(.badge):not(.btn) {
    color: #e9ecef !important;
}*/

/* Table responsive wrapper */
/*.theme-dark .table-responsive {
    background-color: transparent;
}*/

/* Ensure badges in tables maintain their colors but are visible */
/*.theme-dark .table td .badge {*/
/* Badges should keep their colors but ensure text is visible */
/*opacity: 1;
}*/

/* Override any Bootstrap or inline styles that might set black text */
/*.theme-dark .table tbody tr td {
    color: #e9ecef !important;
}*/

/* Target all possible text elements in table cells */
/*.theme-dark .table td,
.theme-dark .table td p,
.theme-dark .table td div,
.theme-dark .table td span:not(.badge):not(.btn),
.theme-dark .table td a:not(.btn),
.theme-dark .table td strong,
.theme-dark .table td em {
    color: #e9ecef !important;
}*/

/* Ensure table body text is always visible */
/*.theme-dark table.table tbody td {
    color: #e9ecef !important;
}*/

/* Dropdown Dark Mode */
/*.theme-dark .dropdown-menu {
    background-color: #212529;
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .dropdown-item {
    color: #e9ecef;
}

.theme-dark .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #86b7fe;
}

.theme-dark .dropdown-item:active {
    background-color: #0d6efd;
    color: white;
}*/

/* Alerts Dark Mode */
/*.theme-dark .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
    color: #75b798;
}

.theme-dark .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f1aeb5;
}

.theme-dark .alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffda6a;
}

.theme-dark .alert-info {
    background-color: rgba(13, 202, 240, 0.2);
    border-color: rgba(13, 202, 240, 0.3);
    color: #86cfda;
}*/

/* Warning cards with dark text - fix for dark mode */
/*.theme-dark .bg-warning.text-dark,
.theme-dark .card.bg-warning.text-dark {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a !important;
}

.theme-dark .bg-warning.text-dark .card-title,
.theme-dark .bg-warning.text-dark h1,
.theme-dark .bg-warning.text-dark h2,
.theme-dark .bg-warning.text-dark h3,
.theme-dark .bg-warning.text-dark h4,
.theme-dark .bg-warning.text-dark h5,
.theme-dark .bg-warning.text-dark h6,
.theme-dark .bg-warning.text-dark p,
.theme-dark .bg-warning.text-dark small {
    color: #ffda6a !important;
}

.theme-dark .bg-warning.text-dark a {
    color: #ffc107 !important;
    text-decoration: underline;
}

.theme-dark .bg-warning.text-dark a:hover {
    color: #ffda6a !important;
}*/

/* Text Colors Dark Mode */
/*.theme-dark .text-muted {
    color: #adb5bd !important;
}

.theme-dark .text-primary {
    color: #86b7fe !important;
}

.theme-dark .text-success {
    color: #75b798 !important;
}

.theme-dark .text-danger {
    color: #f1aeb5 !important;
}

.theme-dark .text-warning {
    color: #ffda6a !important;
}

.theme-dark .text-info {
    color: #86cfda !important;
}*/

/* Fix text-dark and text-black in dark mode */
/*.theme-dark .text-dark,
.theme-dark .text-black {
    color: #e9ecef !important;
}*/

/* Card titles and headings in dark mode */
/*.theme-dark .card-title,
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
    color: #e9ecef !important;
}*/

/* Paragraphs and body text */
/*.theme-dark p,
.theme-dark .card-text {
    color: #e9ecef !important;
}*/

/* Links in dark mode */
/*.theme-dark a {
    color: #86b7fe !important;
}

.theme-dark a:hover {
    color: #a5c9fe !important;
}*/

/* Small text */
/*.theme-dark small {
    color: #adb5bd !important;
}*/

/* Strong and bold text */
/*.theme-dark strong,
.theme-dark b,
.theme-dark .fw-bold,
.theme-dark .fw-semibold {
    color: #e9ecef !important;
}*/

/* Labels and form text */
/*.theme-dark label,
.theme-dark .form-label {
    color: #e9ecef !important;
}*/

/* List items */
/*.theme-dark li {
    color: #e9ecef !important;
}*/

/* Blockquotes */
/*.theme-dark blockquote {
    color: #adb5bd !important;
    border-left-color: rgba(255, 255, 255, 0.2) !important;
}*/

/* Code and pre elements */
/*.theme-dark code,
.theme-dark pre {
    background-color: #212529 !important;
    color: #e9ecef !important;
}*/

/* Mark/highlight */
/*.theme-dark mark {
    background-color: rgba(255, 193, 7, 0.3) !important;
    color: #e9ecef !important;
}*/

/* Address */
/*.theme-dark address {
    color: #e9ecef !important;
}*/

/* Definition lists */
/*.theme-dark dt {
    color: #e9ecef !important;
}

.theme-dark dd {
    color: #adb5bd !important;
}*/

/* Ensure all text in cards is visible */
/*.theme-dark .card * {
    color: inherit;
}*/

/* Fix any elements with inline styles or hardcoded colors */
/*.theme-dark [style*="color: black"],
.theme-dark [style*="color:#000"],
.theme-dark [style*="color: #000"] {
    color: #e9ecef !important;
}*/

/* Badges Dark Mode */
/*.theme-dark .bg-label-primary {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #86b7fe !important;
}

.theme-dark .bg-label-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #75b798 !important;
}

.theme-dark .bg-label-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #f1aeb5 !important;
}

.theme-dark .bg-label-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a !important;
}

.theme-dark .bg-label-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    color: #86cfda !important;
}*/

/* Scrollbar Dark Mode */
/*.theme-dark ::-webkit-scrollbar-track {
    background: #212529;
}

.theme-dark ::-webkit-scrollbar-thumb {
    background: #495057;
}

.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}*/

/* Navbar Dark Mode */
/*.theme-dark .navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .navbar-brand,
.theme-dark .navbar-nav .nav-link {
    color: #e9ecef;
}*/

/* Avatar Dark Mode */
/*.theme-dark .avatar {
    background-color: #495057;
    color: #e9ecef;
}*/

/* Main Content Dark Mode */
/*.theme-dark main {
    background-color: transparent;
}*/

/* Background overlay adjustment for dark mode */
/*.theme-dark body::before {
    background-color: rgba(0, 0, 0, 0.7);
}*/

/* Carousel Dark Mode */
/*.theme-dark .carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
}*/

/* Modal Dark Mode */
html[data-theme="dark"] .modal-content {
    background-color: rgba(33, 37, 41, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-header {
    background-color: rgba(33, 37, 41, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-title {
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-body {
    background-color: rgba(33, 37, 41, 0.98) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-footer {
    background-color: rgba(33, 37, 41, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .modal-body .form-label {
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-body .form-control,
html[data-theme="dark"] .modal-body .form-select {
    background-color: rgba(52, 58, 64, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e9ecef !important;
}

html[data-theme="dark"] .modal-body .form-control:focus,
html[data-theme="dark"] .modal-body .form-select:focus {
    background-color: rgba(52, 58, 64, 0.95) !important;
    border-color: var(--primary-color) !important;
    color: #e9ecef !important;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25) !important;
}

html[data-theme="dark"] .modal-body .form-control::placeholder {
    color: rgba(233, 236, 239, 0.5) !important;
}

html[data-theme="dark"] .modal-body .form-control[readonly] {
    background-color: rgba(40, 44, 48, 0.95) !important;
    color: rgba(233, 236, 239, 0.7) !important;
}

html[data-theme="dark"] .modal-body .form-text,
html[data-theme="dark"] .modal-body .text-muted {
    color: rgba(233, 236, 239, 0.6) !important;
}

html[data-theme="dark"] .modal-body .alert {
    background-color: rgba(13, 110, 253, 0.2) !important;
    border-color: rgba(13, 110, 253, 0.3) !important;
    color: #b3d9ff !important;
}

html[data-theme="dark"] .modal-body .alert-info {
    background-color: rgba(13, 202, 240, 0.15) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #a8e6f5 !important;
}

html[data-theme="dark"] .modal-body .alert strong {
    color: #e9ecef !important;
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

html[data-theme="dark"] .btn-close:hover {
    opacity: 1;
}

html[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Input Group Dark Mode */
/*.theme-dark .input-group-text {
    background-color: #495057;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9ecef;
}*/

/* List Group Dark Mode */
/*.theme-dark .list-group-item {
    background-color: rgba(33, 37, 41, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.theme-dark .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}*/

/* Breadcrumb Dark Mode */
/*.theme-dark .breadcrumb {
    background-color: transparent;
}

.theme-dark .breadcrumb-item a {
    color: #86b7fe;
}

.theme-dark .breadcrumb-item.active {
    color: #adb5bd;
}*/

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Skip to main content link for screen readers */
/*.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d6efd;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-main:focus {
    top: 0;
}*/

/* Improve contrast for better readability */
/*.card-title {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
}*/

/* Better spacing for touch devices */
/*@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item {
        padding: 0.75rem 1rem;
    }*/

/* Remove hover effects on touch devices */
/*.card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}*/

/* Touch device specific styles */
/*.touch-device .btn,
.touch-device .nav-link,
.touch-device .dropdown-item {
    -webkit-tap-highlight-color: rgba(13, 110, 253, 0.2);
    tap-highlight-color: rgba(13, 110, 253, 0.2);
}

.touch-device .carousel {
    touch-action: pan-y pinch-zoom;
}*/

/* Print styles */
/*@media print {
    .sidebar,
    .sidebar-backdrop,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
    }

    body {
        background-image: none;
        background-color: white;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}*/
