/* ===== Variables ===== */
:root {
    --bg: #e0e5ec;
    --text: #333;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --accent: #4e9af1;
  }
  
  /* Dark Theme */
  body.dark {
    --bg: #1e1e2f;
    --text: #f5f5f5;
    --shadow-light: #2c2c3a;
    --shadow-dark: #10101a;
    --accent: #ffb347;
  }
  
  /* ===== Base ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
  }
  
  body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }
  
  .dashboard {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
  }
  
  /* Sidebar */
  .sidebar {
    background: var(--bg);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    flex: 1;
    max-width: 220px;
    transition: transform 0.3s ease-in-out;
  }
  
  .brand {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 1.2rem;
  }
  
  .menu {
    list-style: none;
  }
  
  .menu li {
    padding: 12px 10px;
    margin-bottom: 15px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    transition: all 0.3s;
  }
  
  .menu li:hover,
  .menu li.active {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
  }
  
  /* Main Content */
  .main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .profile {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 4px 4px 6px var(--shadow-dark),
                -4px -4px 6px var(--shadow-light);
  }
  
  .logout {
    cursor: pointer;
  }
  
  .theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Cards */
  .cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .card {
    flex: 1;
    background: var(--bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    transition: transform 0.3s;
    min-width: 200px;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--accent);
  }
  
  .card p {
    font-size: 1.4rem;
    font-weight: bold;
  }
  
  /* Transactions */
  .transactions table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: 15px;
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    overflow: hidden;
  }
  
  .transactions th, 
  .transactions td {
    padding: 10px 12px;
    text-align: left;
  }
  
  .transactions th {
    background: var(--bg);
    box-shadow: inset 0 -1px 0 var(--shadow-dark);
  }
  
  .transactions tr:hover {
    background: var(--accent);
    color: #fff;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 900px) {
    .dashboard {
      flex-direction: column;
      padding: 0;
    }
  
    .sidebar {
      position: fixed;
      top: 0;
      left: -100%;
      width: 220px;
      height: 100%;
      z-index: 200;
    }
  
    .sidebar.active {
      left: 0;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .main-content {
      padding: 20px;
    }
  }
  