:root {
      --sidebar-width: 260px;
      --transition-speed: 0.3s;
      --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --sidebar-bg: #1a1d29;
      --content-bg: #f8f9fa;
    }
    
    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background-color: var(--content-bg);
      overflow-x: hidden;
    }
    
    /* Modern Navbar */
    .navbar-modern {
      background: var(--primary-gradient);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      height: 64px;
    }
    
    /* Modern Sidebar */
    .sidebar-modern {
      width: var(--sidebar-width);
      background: var(--sidebar-bg);
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1030;
      transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
    }
    
    .sidebar-hidden {
      transform: translateX(-100%);
    }
    
    /* Sidebar overlay for mobile */
    .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1029;
      display: none;
      backdrop-filter: blur(3px);
    }
    
    .sidebar-overlay.active {
      display: block;
    }
    
    /* Main content */
    .main-content {
      transition: margin-left var(--transition-speed);
      min-height: calc(100vh - 64px);
      margin-top: 64px;
    }
    
    /* Sidebar menu items */
    .nav-item-modern {
      margin: 4px 12px;
      border-radius: 10px;
      overflow: hidden;
    }
    
    .nav-link-modern {
      color: #a0a7c2;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.2s;
      border-radius: 10px;
      text-decoration: none !important;
    }
    
    .nav-link-modern:hover, .nav-link-modern.active {
      background: rgba(102, 126, 234, 0.15);
      color: #ffffff;
      transform: translateX(5px);
    }
    
    .nav-link-modern i {
      width: 22px;
      text-align: center;
      font-size: 1.1rem;
    }
    
    /* Status indicators - remove underline */
    .status-indicator {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-left: auto;
      text-decoration: none !important;
    }
    
    .status-online { background: #10b981; }
    .status-offline { background: #6c757d; }
    
    /* Toggle button */
    .toggle-btn {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 10px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      transition: all 0.2s;
      text-decoration: none !important;
    }
    
    .toggle-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: rotate(90deg);
    }
    
    /* Cards */
    .card-modern {
      border: none;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s, box-shadow 0.3s;
      overflow: hidden;
    }
    
    .card-modern:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }
    
    /* Responsive adjustments */
    @media (max-width: 991.98px) {
      .sidebar-modern {
        transform: translateX(-100%);
      }
      
      .sidebar-modern.mobile-open {
        transform: translateX(0);
      }
      
      .main-content {
        margin-left: 0 !important;
      }
    }
    
    @media (min-width: 992px) {
      .sidebar-modern {
        transform: translateX(0) !important;
      }
      
      .main-content {
        margin-left: var(--sidebar-width);
      }
      
      .toggle-btn.mobile-only {
        display: none;
      }
      
      .sidebar-overlay {
        display: none !important;
      }
    }
    
    /* Animation classes */
    .fade-in {
      animation: fadeIn 0.4s ease-out;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* Remove text decoration from all links */
    a {
      text-decoration: none !important;
    }
    
    /* Style for sidebar links */
    .sidebar-modern a {
      text-decoration: none !important;
    }



    /* Style for toast function */

    .toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 99999;
    font-family: Arial, sans-serif;
    animation: slideInRight 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-message.success { background: #10b981; }
.toast-message.danger { background: #dc3545; }
.toast-message.warning { background: #ffc107; color: #000; }
.toast-message.info { background: #17a2b8; }



.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #6c5ce7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
