/* assets/css/style.css - PJK3 System Styles */

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #868e96;
  --border-color: #dee2e6;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Brand colors */
  --primary: #007bff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --dark: #343a40;
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 60px;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3d3d3d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --border-color: #404040;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  transition: all 0.3s ease;
}

.sidebar.collapsed + .main-content {
  margin-left: 60px;
}

/* Header */
.header {
  height: var(--header-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Sidebar */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.sidebar-header .logo {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.sidebar.collapsed .sidebar-header .logo {
  font-size: 16px;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-item {
  margin-bottom: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-left-color: var(--primary);
}

.nav-link i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar.collapsed .nav-link {
  padding: 12px 20px;
  justify-content: center;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

/* Cards */
.card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

/* Stat boxes */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background: linear-gradient(135deg, var(--primary), #0056b3);
  color: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.stat-box.success {
  background: linear-gradient(135deg, var(--success), #1e7e34);
}

.stat-box.warning {
  background: linear-gradient(135deg, var(--warning), #e0a800);
}

.stat-box.danger {
  background: linear-gradient(135deg, var(--danger), #bd2130);
}

.stat-box.info {
  background: linear-gradient(135deg, var(--info), #138496);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.table tr:hover {
  background-color: var(--bg-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.invalid-feedback {
  color: var(--danger);
  font-size: 12px;
  margin-top: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #1e7e34;
}

.btn-warning {
  background-color: var(--warning);
  color: var(--dark);
}

.btn-warning:hover {
  background-color: #e0a800;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #bd2130;
}

.btn-info {
  background-color: var(--info);
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.badge-primary { background-color: var(--primary); color: white; }
.badge-success { background-color: var(--success); color: white; }
.badge-warning { background-color: var(--warning); color: var(--dark); }
.badge-danger { background-color: var(--danger); color: white; }
.badge-info { background-color: var(--info); color: white; }
.badge-secondary { background-color: var(--text-muted); color: white; }

/* ===================================================================
   GANTI SELURUH CSS NOTIFICATION LAMA dengan CSS INI
   Hapus CSS notification yang lama, ganti dengan yang ini
   ================================================================== */

/* ENHANCED NOTIFICATION SYSTEM CSS - FINAL VERSION */
.notification-container {
    position: relative;
    display: inline-block;
}

.notification-container.show .notification-dropdown {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.1);
}

.notification-bell:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
}

.notification-header i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 1.1rem;
}

.notification-item {
    position: relative;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--bg-primary);
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.notification-item:hover {
    background-color: var(--bg-secondary);
    transform: translateX(2px);
}

.notification-item.unread {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 4px solid var(--primary);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.notification-item.text-center {
    display: block !important;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-item.text-center i {
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
    font-size: 2rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1); 
    }
    50% { 
        opacity: 0.6; 
        transform: translateY(-50%) scale(1.2); 
    }
}

/* Scrollbar */
.notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -20px;
        max-height: 400px;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-header {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -40px;
        max-height: 350px;
    }
    
    .notification-item {
        padding: 10px 12px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .notification-dropdown {
        background-color: var(--dark-bg-primary, #1a1a1a);
        border-color: var(--dark-border-color, #333);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    
    .notification-item {
        background-color: var(--dark-bg-primary, #1a1a1a);
    }
    
    .notification-item:hover {
        background-color: var(--dark-bg-secondary, #2a2a2a);
    }
    
    .notification-item.unread {
        background-color: rgba(0, 123, 255, 0.1);
    }
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: between;
}

.modal-title {
  font-weight: 600;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: var(--warning);
  color: #856404;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-color: var(--info);
  color: var(--info);
}

/* Charts */
.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background-color: rgba(0, 123, 255, 0.05);
}

.file-upload-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.file-upload-text {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Progress Bar */
.progress {
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary);
  height: 100%;
  transition: width 0.3s ease;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-1 { flex: 1; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .table-container {
    font-size: 12px;
  }
  
  .modal {
    margin: 20px;
    max-width: none;
    width: calc(100% - 40px);
  }
  
  .notification-dropdown {
    width: 280px;
    right: -60px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 15px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .stat-box {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}
/* Dashboard Layout Improvements - Tambahkan ke style.css */

/* Dashboard Container */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6c5ce7);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
}

/* Color variations for different stats */
.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Dashboard Content Grid */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chart Container */
.chart-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.chart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header .chart-actions {
    display: flex;
    gap: 10px;
}

/* Recent Activity List */
.activity-list {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.activity-list h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.quick-actions h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.quick-action-btn i {
    width: 20px;
    text-align: center;
}

/* Notifications Panel */
.notifications-panel {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.05);
    margin: 0 -15px;
    padding: 12px 15px;
    border-radius: 8px;
}

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stat-info h3 {
        font-size: 1.8rem;
    }
    
    .chart-container,
    .activity-list,
    .quick-actions,
    .notifications-panel {
        padding: 20px;
    }
    
    .dashboard-content {
        gap: 20px;
    }
    
    .dashboard-main,
    .dashboard-sidebar {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chart-container,
    .activity-list,
    .quick-actions,
    .notifications-panel {
        padding: 15px;
    }
}

/* Page Header Improvements */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header-content h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-content p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-primary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-stat {
    height: 40px;
    width: 80px;
    margin-bottom: 8px;
}

/* Theme-specific improvements */
[data-theme="dark"] .stat-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chart-container,
[data-theme="dark"] .activity-list,
[data-theme="dark"] .quick-actions,
[data-theme="dark"] .notifications-panel {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(var(--primary-rgb), 0.1);
}
/* File Upload Improvements - Tambahkan ke style.css */

/* File Upload Container */
.file-upload-container {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.file-upload-wrapper.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    transform: scale(1.02);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    pointer-events: none;
    z-index: 1;
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-upload-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* File Info Display */
.file-info {
    margin-top: 15px;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.selected-file i {
    color: var(--danger);
    font-size: 1.2rem;
}

.file-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove-file:hover {
    color: var(--danger);
    background: rgba(var(--danger-rgb), 0.1);
}

/* Upload Progress */
.upload-progress {
    margin-top: 15px;
    display: none;
}

.upload-progress.show {
    display: block;
}

.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* File Upload States */
.file-upload-wrapper.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.file-upload-wrapper.success {
    border-color: var(--success);
    background: rgba(var(--success-rgb), 0.05);
}

.file-upload-wrapper.error {
    border-color: var(--danger);
    background: rgba(var(--danger-rgb), 0.05);
}

/* Modal Dialog Fixes */
.modal.show {
    display: block !important;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 30px auto;
    max-width: 90%;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-close::before {
    content: '×';
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Prevent Dialog Duplication */
input[type="file"][data-dialog-open="true"] {
    pointer-events: none;
}

/* Form Validation States */
.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 0.2rem rgba(var(--danger-rgb), 0.25);
}

.form-control.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(var(--success-rgb), 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--danger);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--success);
}

/* Loading Spinner for File Operations */
.file-operation-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 9999;
    display: none;
}

.file-operation-loading.show {
    display: block;
}

.file-operation-loading i {
    margin-right: 10px;
}

/* Responsive File Upload */
@media (max-width: 768px) {
    .file-upload-wrapper {
        padding: 20px 15px;
    }
    
    .file-upload-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .file-upload-text {
        font-size: 1rem;
    }
    
    .file-upload-hint {
        font-size: 0.8rem;
    }
    
    .selected-file {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-dialog {
        margin: 15px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .file-upload-wrapper {
        padding: 15px 10px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 10px 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* Custom File Input Button */
.file-input-custom {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-input-custom input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-input-label:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.file-input-label i {
    font-size: 1rem;
}

/* Table Responsive Improvements */
.table-responsive {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    background: var(--bg-primary);
}

.table thead th {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 15px 12px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Improvements */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--text-primary);
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-secondary {
    background: var(--text-muted);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.action-buttons .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    min-width: auto;
}

/* Empty State Improvements */
.empty-state {
    padding: 60px 30px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--text-muted);
}

.empty-state h4 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.empty-state .btn {
    margin-top: 10px;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .file-upload-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .file-upload-wrapper:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .selected-file {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table thead th {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Animation for Smooth Transitions */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.show .modal-dialog {
    animation: slideInUp 0.3s ease-out;
}

.alert {
    animation: fadeIn 0.3s ease-out;
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar,
.activity-list::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.activity-list::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb,
.activity-list::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.activity-list::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
/* dashboard
/* Perbaikan Layout Dashboard - Tambahkan ke style.css atau buat file terpisah */

/* Fix Main Layout Structure */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    background: var(--bg-secondary);
    transition: margin-left 0.3s ease;
}

/* Header/Navbar Fixes */
.main-header {
    position: sticky;
    top: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Fix Notification Bell Position */
.notification-dropdown {
    position: relative;
}

.notification-toggle {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.notification-dropdown.show .notification-dropdown-menu {
    display: block;
}

/* Fix Theme Toggle Position */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* User Dropdown Fix */
.user-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.user-info:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Container Fluid Fix */
.container-fluid {
    padding: 20px;
    max-width: none;
    width: 100%;
}

/* Card Layout Improvements */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.card-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 25px;
}

/* Table Responsive Fix */
.table-responsive {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 20px;
}

.table {
    margin: 0;
    background: var(--bg-primary);
    font-size: 0.9rem;
}

.table thead th {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 15px 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Form Layout Improvements */
.filters-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Button Improvements */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Badge Improvements */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: var(--primary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: var(--text-primary); }
.badge-danger { background: var(--danger); color: white; }
.badge-info { background: var(--info); color: white; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    .notification-dropdown-menu {
        width: 280px;
        right: -20px;
    }
    
    .container-fluid {
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 0 15px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .notification-dropdown-menu {
        width: 250px;
        right: -30px;
    }
    
    .container-fluid {
        padding: 10px;
    }
    
    .filters-section {
        padding: 20px;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
}

/* Dark Theme Specific Fixes */
[data-theme="dark"] .sidebar,
[data-theme="dark"] .main-header,
[data-theme="dark"] .card,
[data-theme="dark"] .filters-section {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .table thead th {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Animation Improvements */
.card,
.filters-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Z-index Management */
.sidebar { z-index: 1000; }
.main-header { z-index: 999; }
.notification-dropdown-menu { z-index: 1050; }
.modal { z-index: 1055; }
.modal-backdrop { z-index: 1040; }

/* Page Header Improvements */
.page-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header-content h1 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(var(--info-rgb), 0.1);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h4 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Action Buttons Fix */
.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    min-width: auto;
}

/* Card Header Content Fix */
.card-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-header-content h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Modal Improvements */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-dialog {
    margin: 30px auto;
    max-width: 90%;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-close::before {
    content: '×';
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Form Row Fix */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 10px;
    margin-bottom: 15px;
}

/* Form Group Improvements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
}

/* Sidebar Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .modal-dialog {
        margin: 15px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
    .filters-section {
        padding: 15px;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .action-buttons .btn {
        width: 100%;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .main-header,
    .page-header-actions,
    .action-buttons,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container-fluid {
        padding: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
/*layout css
/* Main Layout CSS - Tambahkan ke style.css atau buat file layout.css */

/* Layout Variables */
:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 60px;
    --header-height: 60px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Main Wrapper Layout */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-nav .nav-link span {
    display: none;
}

.sidebar.collapsed .logo span {
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    transition: margin-left 0.3s ease;
    position: relative;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Container Fluid */
.container-fluid {
    padding: 20px;
    width: 100%;
    max-width: none;
}

/* Sidebar Header */
.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo i {
    font-size: 1.3rem;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 20px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-link .badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--danger);
    color: white;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.nav-link .badge.badge-warning {
    background: var(--warning);
    color: var(--text-primary);
}

.sidebar.collapsed .nav-link {
    padding: 12px 20px;
    justify-content: center;
    position: relative;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.6rem;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sidebar-header {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-section-title {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .main-header {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
}

/* Focus and Accessibility */
.nav-link:focus,
.theme-toggle:focus,
.notification-bell:focus,
.user-avatar:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        border-color: var(--primary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .main-content,
    .nav-link,
    .theme-toggle,
    .notification-bell,
    .user-avatar {
        transition: none;
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 480px) {
    .container-fluid {
        padding: 15px;
    }
    
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Large Screen Adjustments */
@media (min-width: 1400px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .sidebar-header {
        padding: 20px 25px;
    }
    
    .nav-link {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
}

/* Tooltip for Collapsed Sidebar */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 10px;
    z-index: 1002;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 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);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Area Improvements */
.main-content {
    position: relative;
    overflow-x: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* Footer */
.main-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--text-muted);
    margin: 0 8px;
}

/* Quick Actions Floating Button */
.quick-actions-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Status Indicators */
.status-online::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* Notification Styles Enhancement */
.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.05);
    border-left: 3px solid var(--primary);
}

.notification-item:hover {
    background: var(--bg-secondary);
}

/* User Avatar Enhancement */
.user-avatar img {
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.user-avatar:hover img {
    border-color: var(--primary);
}

/* Sidebar Toggle Animation */
.sidebar-toggle-btn {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    z-index: 1001;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* Content Transitions */
.page-transition {
    animation: pageSlideIn 0.3s ease-out;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Error States */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--danger);
    opacity: 0.6;
}

.error-state h3 {
    margin: 0 0 10px;
    color: var(--text-secondary);
}

.error-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Success States */
.success-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.success-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--success);
}

/* Custom Scrollbar for Main Content */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Classes */
.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-radius {
    border-radius: 8px;
}

.border-radius-lg {
    border-radius: 12px;
}

/* RTL Support (if needed) */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

[dir="rtl"] .main-header {
    left: 0;
    right: var(--sidebar-width);
}

/* High DPI/Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo i,
    .nav-link i {
        transform: translateZ(0);
    }
}

/* Keyboard Navigation */
.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--bg-secondary);
}

/* Animation Performance */
.sidebar,
.main-content,
.main-header {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Content Security */
.main-content {
    isolation: isolate;
}

/* Final Responsive Adjustments */
@media (max-width: 320px) {
    .container-fluid {
        padding: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .sidebar-header {
        padding: 10px 12px;
    }
}