:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f8fa;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary-gradient);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .logo {
    padding: 25px 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .logo i {
    font-size: 28px;
}

.sidebar nav {
    padding: 20px 0;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: white;
    color: white;
}

.sidebar nav a.active {
    background: rgba(255,255,255,0.15);
    border-left-color: white;
    color: white;
    font-weight: 500;
}

.sidebar nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar hr {
    border-color: rgba(255,255,255,0.1);
    margin: 20px 15px;
}

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

/* Header */
.top-header {
    background: white;
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

.user-info i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Content Area */
.content-area {
    padding: 30px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 25px;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 25px;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    color: white;
}

.stats-card i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stats-card h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #64748b;
}

/* Bootstrap Table Customization */
.bootstrap-table .fixed-table-toolbar {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.bootstrap-table .fixed-table-container {
    border-radius: 0 0 8px 8px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 15px;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.page-header .subtitle {
    color: #64748b;
    font-size: 14px;
}
    
.table-danger {
    background-color: #f8d7da !important;
    color: #6c757d !important;
}
.table-danger button {
    pointer-events: none;
    opacity: 0.5;
}
