/* Dark Theme with Brown and Pink Accents */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent-red: #5E3F27;
    --accent-red-light: #8b7355;
    --accent-red-dark: #3a2a1f;
    --accent-pink: #FFDFEF;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Base styles */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cards */
.card {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 8px var(--shadow-color) !important;
}

.card-header {
    background-color: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.card-body {
    background-color: var(--bg-secondary) !important;
}

.card-footer {
    background-color: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red) 100%) !important;
}

.navbar-brand, .nav-link {
    color: var(--text-primary) !important;
}

.nav-link:hover {
    color: #FFDFEF !important;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: var(--text-primary) !important;
}

.btn-primary:hover {
    background-color: var(--accent-red-light) !important;
    border-color: var(--accent-red-light) !important;
}

.btn-secondary {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-secondary:hover {
    background-color: #4a4a4a !important;
    border-color: #555555 !important;
}

.btn-success {
    background-color: #2d5a2d !important;
    border-color: #2d5a2d !important;
}

.btn-success:hover {
    background-color: #3d6a3d !important;
    border-color: #3d6a3d !important;
}

.btn-warning {
    background-color: #8b6914 !important;
    border-color: #8b6914 !important;
    color: var(--text-primary) !important;
}

.btn-warning:hover {
    background-color: #a67c14 !important;
    border-color: #a67c14 !important;
}

.btn-danger {
    background-color: var(--accent-red-dark) !important;
    border-color: var(--accent-red-dark) !important;
}

.btn-danger:hover {
    background-color: #440000 !important;
    border-color: #440000 !important;
}

.btn-info {
    background-color: #2d4a5a !important;
    border-color: #2d4a5a !important;
}

.btn-info:hover {
    background-color: #3d5a6a !important;
    border-color: #3d5a6a !important;
}

.btn-outline-primary {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: var(--text-primary) !important;
}

.btn-outline-danger {
    color: var(--accent-red-light) !important;
    border-color: var(--accent-red-light) !important;
}

.btn-outline-danger:hover {
    background-color: var(--accent-red-light) !important;
    border-color: var(--accent-red-light) !important;
    color: var(--text-primary) !important;
}

/* Forms */
.form-control, .form-select {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(94, 63, 39, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-label {
    color: var(--text-secondary) !important;
}

.form-check-input:checked {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-dark {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #2a2a2a 100%) !important;
    color: var(--text-primary) !important;
    position: relative;
}

.table-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 50%, var(--accent-red) 100%);
}

.table-hover tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(68, 68, 68, 0.5);
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, rgba(94, 63, 39, 0.1) 0%, rgba(45, 45, 45, 0.8) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(94, 63, 39, 0.2);
}

.table td, .table th {
    border-color: rgba(68, 68, 68, 0.3) !important;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    position: relative;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #333 100%) !important;
}

.table th i {
    color: var(--accent-red) !important;
    margin-right: 0.5rem;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.table tbody tr:first-child td {
    border-top: none;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: var(--bg-secondary);
}

/* Enhanced table cells */
.table td strong {
    color: var(--text-primary);
    font-weight: 600;
}

.table td .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Table row status styles */
.status-paid {
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.1) 0%, rgba(45, 90, 45, 0.05) 100%) !important;
    border-left: 3px solid #2d5a2d !important;
}

.status-pending {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.1) 0%, rgba(139, 105, 20, 0.05) 100%) !important;
    border-left: 3px solid #8b6914 !important;
}

.status-submitted {
    background: linear-gradient(135deg, rgba(45, 74, 90, 0.1) 0%, rgba(45, 74, 90, 0.05) 100%) !important;
    border-left: 3px solid #2d4a5a !important;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--accent-red) !important;
}

.badge.bg-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.badge.bg-success {
    background-color: #2d5a2d !important;
}

.badge.bg-danger {
    background-color: var(--accent-red-dark) !important;
}

.badge.bg-warning {
    background-color: #8b6914 !important;
    color: var(--text-primary) !important;
}

.badge.bg-info {
    background-color: #2d4a5a !important;
}

.badge.bg-outline-primary {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    background-color: transparent !important;
}

/* Alerts */
.alert {
    border: 1px solid var(--border-color) !important;
}

.alert-success {
    background-color: rgba(45, 90, 45, 0.2) !important;
    border-color: #2d5a2d !important;
    color: #90ee90 !important;
}

.alert-warning {
    background-color: rgba(139, 105, 20, 0.2) !important;
    border-color: #8b6914 !important;
    color: #ffd700 !important;
}

.alert-danger {
    background-color: rgba(94, 63, 39, 0.2) !important;
    border-color: var(--accent-red) !important;
    color: #ff9d9d !important;
}

.alert-info {
    background-color: rgba(45, 74, 90, 0.2) !important;
    border-color: #2d4a5a !important;
    color: #87ceeb !important;
}

/* Modals */
.modal-content {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    background-color: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
    background-color: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-color) !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Admin header */
.admin-header {
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red) 100%) !important;
    color: var(--text-primary) !important;
}

/* Status colors */
.status-submitted {
    background-color: rgba(45, 90, 45, 0.2) !important;
}

.status-pending {
    background-color: rgba(139, 105, 20, 0.2) !important;
}

/* Member cards */
.member-card {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.member-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px var(--shadow-color) !important;
}

/* Text colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--accent-red) !important;
}

.text-success {
    color: #90ee90 !important;
}

.text-warning {
    color: #ffd700 !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.text-info {
    color: #87ceeb !important;
}

/* Login page specific */
.login-container {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red-light);
}

/* Enhanced Responsive Table Design */
@media (max-width: 1200px) {
    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .table-responsive {
        border-radius: 0.25rem;
    }
    
    .table th {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }
    
    .table td {
        padding: 0.6rem 0.4rem;
    }
    
    .table td .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Stack table layout for mobile */
    .table-responsive {
        border: none;
        box-shadow: none;
    }
    
    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
    }
    
    .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table tbody tr {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        animation: none;
    }
    
    .table tbody tr:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    }
    
    .table tbody td {
        border: none !important;
        border-bottom: 1px solid rgba(68, 68, 68, 0.3) !important;
        position: relative;
        padding: 0.75rem 0 0.75rem 45% !important;
        text-align: left !important;
        background: transparent !important;
    }
    
    .table tbody td:last-child {
        border-bottom: none !important;
    }
    
    .table tbody td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--accent-red);
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    
    .table tbody tr:nth-child(even) {
        background-color: var(--bg-secondary) !important;
    }
}

@media (max-width: 576px) {
    .table tbody tr {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.5rem 0 0.5rem 40% !important;
        font-size: 0.85rem;
    }
    
    .table tbody td:before {
        width: 35%;
        font-size: 0.75rem;
    }
    
    .table td .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Animation for smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Advanced Table Animations */
@keyframes tableRowSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tableCellPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), 0 0 12px rgba(139, 0, 0, 0.2);
    }
}

.table tbody tr {
    animation: tableRowSlideIn 0.5s ease-out;
}

.table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.table tbody tr:nth-child(5) { animation-delay: 0.5s; }

.table td .badge:hover {
    animation: badgeGlow 1.5s infinite;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Enhanced Table Headers */
.table th {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table th:hover {
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--bg-tertiary) 100%) !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    transform: translateY(-1px);
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    transition: width 0.3s ease;
}

.table th:hover::after {
    width: 100%;
}

/* Sortable table headers */
.table th.sortable {
    user-select: none;
    position: relative;
    padding-right: 2rem !important;
}

.table th.sortable::before {
    content: '⇅';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.table th.sortable:hover::before {
    opacity: 1;
    color: var(--accent-red);
}

.table th.sortable.sort-asc::before {
    content: '↑';
    opacity: 1;
    color: var(--accent-red-light);
}

.table th.sortable.sort-desc::before {
    content: '↓';
    opacity: 1;
    color: var(--accent-red-light);
}

/* Table header icons enhancement */
.table th i.bi {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.table th:hover i.bi {
    color: var(--text-primary) !important;
    transform: scale(1.1);
}

/* Special styling for action column headers */
.table th:last-child {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--bg-tertiary) 100%) !important;
}

.table th:last-child i {
    color: var(--text-primary) !important;
}

/* Loading animation for tables */
@keyframes tableShimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.table-loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-secondary) 75%);
    background-size: 400% 100%;
    animation: tableShimmer 1.2s ease-in-out infinite;
}

/* Interactive Table Elements */
.table .btn-group {
    display: flex;
    gap: 0.25rem;
}

.table .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table .btn-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.table .btn-sm:hover::before {
    left: 100%;
}

.table .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.table .btn-danger:hover {
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.4);
}

.table .btn-warning:hover {
    box-shadow: 0 4px 8px rgba(139, 105, 20, 0.4);
}

.table .btn-success:hover {
    box-shadow: 0 4px 8px rgba(45, 90, 45, 0.4);
}

.table .btn-info:hover {
    box-shadow: 0 4px 8px rgba(45, 74, 90, 0.4);
}

/* Enhanced Badge Styles in Tables */
.table .badge {
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

.table .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.table .badge:hover::before {
    opacity: 0.3;
    transform: scale(1.2);
}

/* Status indicators in tables */
.table .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.table .status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s infinite;
}

.status-paid .status-indicator::before {
    background-color: #2d5a2d;
}

.status-pending .status-indicator::before {
    background-color: #8b6914;
}

.status-submitted .status-indicator::before {
    background-color: #2d4a5a;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Table search and filter styles */
.table-controls {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 1px solid var(--border-color);
}

.table-search {
    position: relative;
}

.table-search input {
    padding-left: 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.table-search input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25);
    background: var(--bg-secondary);
}

.table-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Table pagination styles */
.table-pagination {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 1px solid var(--border-color);
}

.table-pagination .pagination {
    margin: 0;
}

.table-pagination .page-link {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.table-pagination .page-link:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.table-pagination .page-item.active .page-link {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Fix for Bootstrap icons in dark theme */
.bi {
    color: inherit !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Special styling for weapon badges */
.badge.bg-warning.text-dark {
    background-color: #8b6914 !important;
    color: var(--text-primary) !important;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, var(--accent-red-dark) 0%, var(--bg-secondary) 100%);
    border-right: 2px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red) 100%);
    border-bottom: 2px solid var(--border-color);
}

.sidebar-brand {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.sidebar-brand:hover {
    color: #ffcccc !important;
}

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

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary) !important;
    border-left-color: var(--accent-red);
}

.sidebar-nav-item.active {
    background-color: rgba(139, 0, 0, 0.3);
    color: var(--text-primary) !important;
    border-left-color: var(--accent-red);
    font-weight: bold;
}

.sidebar-nav-item i {
    width: 20px;
    margin-right: 0.75rem;
}

.sidebar-submenu {
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--accent-red-dark);
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.sidebar-submenu .sidebar-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-left: none;
    padding-left: 2rem;
}

.sidebar-submenu .sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: none;
}

.sidebar-submenu .sidebar-nav-item.active {
    background-color: rgba(139, 0, 0, 0.2);
    border-left: none;
}

/* Main content adjustment */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top navbar for mobile */
.top-navbar {
    display: none;
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red) 100%);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.navbar-toggler-sidebar {
    background: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-sidebar:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* User info in sidebar */
.sidebar-user {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sidebar-user-info i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.sidebar-user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 320px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar-submenu .sidebar-nav-item {
        font-size: 0.8rem;
        padding-left: 1.5rem;
    }
    
    .sidebar-section-title {
        font-size: 0.7rem;
    }
}

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

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