.dashboard-layout {
    display: flex;
    gap: 24px;
    padding: 24px;
    flex: 1;
    background: linear-gradient(180deg, #fef8f4 0%, #f8e8e0 100%);
    min-height: calc(100vh - 200px);
  }

  .sidebar {
    width: 240px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(26,35,126,0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(26,35,126,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content;
  }

  .sidebar a {
    text-decoration: none;
    color: #1a237e;
    padding: 10px 12px;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
  }

  .sidebar a:hover {
    background: rgba(26,35,126,0.08);
  }

  .sidebar a.active {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
  }

  .sidebar button.logout {
    margin-top: 8px;
    background: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
  }

  .sidebar button.logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233,30,99,0.3);
  }

  .profile-card {
    background: rgba(255,255,255,0.9);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26,35,126,0.08);
    max-width: 480px;
  }

  .profile-card h2 {
    margin-bottom: 16px;
    color: #1a237e;
  }

  .profile-field {
    margin-bottom: 12px;
  }

  .profile-field label {
    display: block;
    font-size: 14px;
    color: #5c6bc0;
    margin-bottom: 4px;
  }

  .profile-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(26,35,126,0.2);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1a237e;
  }

  .profile-field input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15);
  }

  .profile-field input:disabled {
    background: #f8f4f0;
    cursor: not-allowed;
  }

  .save-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26,35,126,0.3);
  }

  .save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.4);
  }

  .save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .field-error {
    display: block;
    color: #e91e63;
  }

  .field-hint {
    display: block;
    color: #5c6bc0;
  }

  .content {
    flex: 1;
  }

  .history-card {
    background: rgba(255,255,255,0.9);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26,35,126,0.08);
  }

  .history-card h2 {
    color: #1a237e;
    margin-bottom: 8px;
  }
  
  .history-card > p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
  }

  th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid rgba(26,35,126,0.1);
  }

  th {
    color: #5c6bc0;
    font-weight: 600;
  }
  
  td {
    color: #1a237e;
  }

  /* ===== MOBILE RESPONSIVE ===== */
  @media (max-width: 768px) {
    .dashboard-layout {
      flex-direction: column;
      padding: 16px;
      gap: 16px;
      min-height: auto;
    }

    .sidebar {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      padding: 12px;
    }

    .sidebar a {
      padding: 8px 14px;
      font-size: 13px;
      text-align: center;
    }

    .sidebar a.active {
      flex: none;
    }

    .sidebar button.logout {
      margin-top: 0;
      padding: 8px 14px;
      font-size: 13px;
    }

    .content {
      width: 100%;
    }

    .profile-card {
      max-width: 100%;
      padding: 16px;
    }

    .profile-card h2 {
      font-size: 18px;
      margin-bottom: 12px;
    }

    .profile-field label {
      font-size: 13px;
    }

    .profile-field input {
      font-size: 14px;
      padding: 10px;
    }

    .save-btn {
      padding: 10px 16px;
      font-size: 14px;
    }

    .history-card {
      padding: 12px;
      overflow-x: auto;
    }

    .history-card h2 {
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .history-card > p {
      font-size: 13px;
      margin-bottom: 12px;
    }

    /* Make tables scrollable horizontally */
    .table-wrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 -12px;
      padding: 0 12px;
    }

    table {
      min-width: 500px;
      font-size: 13px;
    }

    th, td {
      padding: 8px 10px;
      white-space: nowrap;
    }

    th {
      font-size: 12px;
    }

    td {
      font-size: 12px;
    }

    /* Status badges */
    .status-badge {
      font-size: 10px;
      padding: 3px 8px;
    }
  }

  @media (max-width: 480px) {
    .dashboard-layout {
      padding: 12px;
      gap: 12px;
    }

    .sidebar {
      padding: 10px;
      gap: 6px;
    }

    .sidebar a {
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 6px;
    }

    .sidebar button.logout {
      padding: 6px 10px;
      font-size: 12px;
    }

    .profile-card {
      padding: 12px;
    }

    .profile-card h2 {
      font-size: 16px;
    }

    .history-card {
      padding: 10px;
    }

    .history-card h2 {
      font-size: 14px;
    }
    
    .history-card > p {
      font-size: 12px;
      margin-bottom: 10px;
    }

    table {
      min-width: 400px;
      font-size: 11px;
    }

    th, td {
      padding: 6px 8px;
    }
  }

  /* Table wrapper for horizontal scroll */
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  /* Better mobile table styling */
  @media (max-width: 768px) {
    .history-section {
      margin-bottom: 20px;
    }

    .history-section h3 {
      font-size: 14px;
      margin-bottom: 8px;
    }
  }
