body, html {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #fafbfc;
    margin: 0;
    padding: 0;
    color: #18181b;
  }
  
  .dashboard-root {
    display: flex;
    min-height: 100vh;
    background: #fafbfc;
  }
  
  /* Top menu bar */
  .dashboard-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
  }
  
  .sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: 56px; /* below topbar */
    position: relative;
  }
  
  .sidebar-title {
    font-weight: 600;
    font-size: 20px;
    padding: 24px 0 16px 32px;
    letter-spacing: -0.5px;
  }
  
  .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-item {
    padding: 8px 0 8px 32px;
    font-size: 16px;
    color: #444;
    border-radius: 20px 0 0 20px;
    margin-right: 16px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .sidebar-item.active, .sidebar-item:hover {
    background: #f4f4f5;
    color: #18181b;
    font-weight: 500;
  }
  
  .logout-btn {
    margin: 32px 24px 24px 32px;
    padding: 10px 0;
    width: calc(100% - 56px);
    background: #fff0f0;
    color: #dc2626;
    border: 1px solid #ffe4e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border 0.15s;
    box-shadow: 0 1px 2px rgba(220,38,38,0.04);
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .logout-btn:hover, .logout-btn:focus {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    outline: none;
  }
  
  .dashboard-main {
    flex: 1;
    padding: 72px 32px 32px 32px; /* restore original side padding, keep top for topbar */
    background: #fafbfc;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  
  .dashboard-cards-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(16,30,54,0.04);
    padding: 20px 24px 16px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-card-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
  }
  .dashboard-card-value {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -1px;
  }
  .dashboard-card-sub {
    font-size: 14px;
    color: #4ade80;
    font-weight: 500;
  }
  
  .dashboard-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .dashboard-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(16,30,54,0.04);
    padding: 20px 20px 16px 20px;
    display: flex;
    flex-direction: column;
  }
  .dashboard-usage {
    flex: 2;
    min-width: 0;
  }
  .dashboard-users {
    flex: 1;
    min-width: 220px;
    margin-left: 0;
  }
  .dashboard-panel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
  }
  
  .dashboard-bar-chart {
    display: flex;
    align-items: flex-end;
    height: 180px;
    gap: 10px;
    padding-bottom: 8px;
  }
  .bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }
  .bar {
    width: 18px;
    background: #18181b;
    border-radius: 6px 6px 0 0;
    transition: background 0.2s;
  }
  .bar-label {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
  }
  
  .dashboard-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .dashboard-user-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f4f5;
    margin-right: 14px;
  }
  .user-name {
    font-weight: 500;
    font-size: 15px;
  }
  .user-email {
    font-size: 13px;
    color: #888;
  }
  
  .dashboard-table {
    margin-top: 0;
  }
  .dashboard-table-main {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  .dashboard-table-main th, .dashboard-table-main td {
    padding: 8px 6px;
    text-align: left;
    font-size: 15px;
  }
  .dashboard-table-main th {
    color: #888;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
  }
  .dashboard-table-main td {
    color: #222;
    border-bottom: 1px solid #f6f6f6;
  }
  .dashboard-table-main tr:last-child td {
    border-bottom: none;
  }
  
  @media (max-width: 1100px) {
    .dashboard-row, .dashboard-cards-row {
      flex-direction: column;
      gap: 16px;
    }
    .dashboard-panel, .dashboard-card {
      width: 100%;
    }
    .dashboard-users {
      margin-left: 0;
    }
    .dashboard-main {
      max-width: 100vw;
      padding: 72px 8px 32px 8px;
    }
  }
  
  .theme-mode-icon-dashboard {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    z-index: 101;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
  }

  .theme-mode-icon-dashboard:hover {
    opacity: 0.8;
  }
  
  .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  
  .dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #18181b;
  }
  
  .refresh-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #18181b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border 0.15s;
  }
  
  .refresh-button:hover {
    background: #18181b;
    color: #fff;
    border: 1px solid #18181b;
  }
  
  .refresh-icon {
    font-size: 18px;
    line-height: 1;
  }
  
  .error-container {
    margin-bottom: 24px;
  }
  
  .error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .error-icon {
    font-size: 16px;
    color: #dc2626;
  }
  