body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: #1a237e;
    color: white;
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.1);
    text-align: center;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: #4e73df;
}

.nav-link i {
    width: 25px;
    margin-right: 10px;
}

.card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card .card-body {
    padding: 25px;
}

.stat-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.3;
}

.bg-gradient-primary { background: linear-gradient(45deg, #4e73df, #224abe); }
.bg-gradient-success { background: linear-gradient(45deg, #1cc88a, #13855c); }
.bg-gradient-info { background: linear-gradient(45deg, #36b9cc, #258391); }
.bg-gradient-warning { background: linear-gradient(45deg, #f6c23e, #dda20a); }

.form-control {
    background-color: #2d2d2d;
    color: #ffffff !important;
    border: 1px solid #666;
    border-radius: 10px;
    padding: 10px 15px;
}

.form-control::placeholder {
    color: #bbbbbb !important;
    opacity: 1;
}

.form-label {
    color: #ffffff;
}

.form-control:focus {
    background-color: #333;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
    border-color: #4e73df;
}

.btn-custom {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.table {
    color: #e0e0e0;
    border-color: #333;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #444;
    font-size: 0.9em;
    padding: 8px;
}

.table-custom thead th {
    background-color: #000;
    color: white;
    border: none;
}

/* Enhanced Table Styles */
.table-modern {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.table-modern thead th {
    background: linear-gradient(45deg, #2d2d2d, #3d3d3d);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    border: none;
    padding: 15px 12px;
    position: relative;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
}

.table-modern tbody tr:hover {
    background-color: #2a2a2a;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.table-modern tbody td {
    padding: 12px;
    vertical-align: middle;
    border: none;
    color: #e0e0e0;
}

.table-modern .badge {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Action buttons styling */
.btn-action {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8em;
    margin: 2px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive table */
@media (max-width: 768px) {
    .table-modern {
        font-size: 0.8em;
    }
    .table-modern thead th,
    .table-modern tbody td {
        padding: 8px 6px;
    }
}

/* Item preview styling */
.item-preview ul {
    margin: 0;
    padding-left: 15px;
}

.item-preview li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-preview img {
    border-radius: 3px;
    border: 1px solid #555;
}

/* Additional table enhancements */
.table-modern .btn-action {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8em;
    margin: 2px;
    transition: all 0.3s ease;
}

.table-modern .btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.table-modern .badge {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Empty state styling */
.table-modern .text-center i {
    opacity: 0.5;
}

/* Number formatting */
.text-success.font-weight-bold {
    font-weight: 700 !important;
}

.text-warning.font-weight-bold {
    font-weight: 700 !important;
}