* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .hidden {
    display: none;
  }
  
  

  .login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(rgba(96, 26, 53, 0.9), rgba(96, 26, 53, 0.9)),  
                url('login_image.jpg') center center / cover no-repeat fixed;
    color: #fff;
  }
  
  .login-container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
  }
  
  .login-container h2 {
    font-size: 1.8rem;
    color: #601A35;
    margin-bottom: 20px;
  }
  
  .login-container label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin: 10px 0 5px;
  }
  
  .login-container input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .login-container input:focus {
    border-color: #8e4585;
    outline: none;
  }
  
  .login-container button {
    width: 100%;
    padding: 12px;
    background-color: #8e4585;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .login-container button:hover {
    background-color: #6c3663;
  }
  
  .error-message {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
  }
  
  .error-message:not(.hidden) {
    display: block;
  }
  
  #dashboard {
    background: url('dashboard picture.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    padding: 30px 20px;
    color: #333;
  }
  
  header {
    background-color: #601A35;
    color: #8e4585;
    padding: 15px 20px;
    text-align: center;
    position: relative;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }
  
  .logout-btn, .dark-mode-btn {
    position: absolute;
    top: 15px;
    padding: 8px 12px;
    background-color: #8e4585;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .logout-btn:hover, .dark-mode-btn:hover {
    background-color: #6c3663;
  }
  
  .logout-btn { right: 150px; }
  .dark-mode-btn { right: 20px; }
  
  .logo {
    width: 190px;
    height: auto;
    margin-right: 15px;
  }
  
  h1 {
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  .dashboard-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .dashboard-options button {
    padding: 12px 20px;
    background-color: #8e4585;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-options button:hover {
    background-color: #6c3663;
  }
  
  .inventory-form {
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  
  .inventory-form h2 {
    color: #8e4585;
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .inventory-form label {
    font-size: 1rem;
    margin-top: 15px;
    color: #333;
  }
  
  .inventory-form input, 
  .inventory-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
  }
  
  .inventory-form input:focus, 
  .inventory-form select:focus {
    border-color: #8e4585;
  }
  
  .inventory-form button {
    background: linear-gradient(145deg, #8e4585, #6c3663);
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .inventory-form button:hover {
    background: linear-gradient(145deg, #6c3663, #8e4585);
  }
  
  .inventory-list {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  
  .inventory-list h2 {
    color: #8e4585;
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .buttons-container button {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
  }
  
  .buttons-container button:hover {
    background-color: #45a049;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }
  
  th, td {
    padding: 12px;
    text-align: left;
    font-size: 1rem;
    border: 1px solid #ddd;
    white-space: nowrap;
  }
  
  th {
    background: linear-gradient(135deg, #8e4585, #6c3663);
    color: #ffffff;
  }
  
  tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  .edit-btn, .delete-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
  }
  
  .edit-btn {
    background-color: #4CAF50;
  }
  
  .delete-btn {
    background-color: #f44336;
  }
  
  .edit-btn:hover {
    background-color: #45a049;
  }
  
  .delete-btn:hover {
    background-color: #e53935;
  }
  
  @media print {
    body {
      background: white;
    }
    .inventory-form, header, .edit-btn, .delete-btn, #loginPage, .dashboard-options, .logout-btn, .dark-mode-btn {
      display: none;
    }
    .inventory-list {
      box-shadow: none;
      margin: 0;
      padding: 0;
    }
    table {
      border: none;
    }
    th, td {
      border: 1px solid #ddd;
      font-size: 0.9rem;
      padding: 8px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .login-container, .inventory-form, .inventory-list {
      padding: 15px;
    }
    header h1 {
      font-size: 1.5rem;
    }
    table, th, td {
      font-size: 0.85rem;
    }
  }