/* General body styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 20px;
}

.myButton {
color: rgb(255, 255, 255); font-size: 15px; line-height: 15px; padding: 7px; border-radius: 6px; font-family: Georgia, serif; font-weight: normal; text-decoration: none; font-style: normal; font-variant: normal; text-transform: none; background-image: linear-gradient(to right, rgb(28, 110, 164) 0%, rgb(35, 136, 203) 50%, rgb(20, 78, 117) 100%); box-shadow: rgb(0, 0, 0) 5px 5px 15px 5px; border: 2px solid rgb(28, 110, 164); display: inline-block;}
.myButton:hover {
background: #1C6EA4; }
.myButton:active {
background: #144E75; }


/* Container for dashboard */
.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Header area */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Logout button */
.btn-logout {
  background-color: #e74c3c;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn-logout:hover {
  background-color: #c0392b;
  cursor: pointer;
}

/* Inventory table */
.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #1f1f1f;
}

.inventory-table th,
.inventory-table td {
  padding: 12px 15px;
  border: 1px solid #333;
  text-align: left;
}

.inventory-table th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
}

/* Filters container */
.filters {
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.filters label {
  font-weight: 600;
  margin-right: 8px;
}

/* Input fields and dropdowns */
.filters input[type="text"],
.filters select,
input,
select,
textarea {
  padding: 8px 12px;
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
  outline: none;
}

.filters input:focus,
select:focus,
textarea:focus {
  border-color: #00bcd4;
}

/* Message and error */
.message {
  background-color: #2e7d32;
  color: #c8facc;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #43a047;
}

.error {
  background-color: #c62828;
  color: #ffd2d2;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ef5350;
}

.dashboard-nav {
  margin-bottom: 20px;
}

.btn-nav {
  background-color: #2980b9;
  color: white;
  padding: 8px 15px;
  margin-right: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-nav:hover {
  background-color: #1c5980;
  cursor: pointer;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.subtitle {
  margin-top: -10px;
  margin-bottom: 20px;
  color: #aaa;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid label {
  grid-column: span 2;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.styled-table th,
.styled-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.inline-form {
  display: inline;
}

.btn.danger {
  background-color: #d9534f;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #121212;
  color: #e0e0e0;
}

.login-container {
  background-color: #1e1e1e;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 400px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-top: 10px;
  font-weight: bold;
}

.login-form input {
  margin-top: 5px;
  padding: 10px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
}

.login-form input:focus {
  border-color: #00bcd4;
  outline: none;
}

.page {
  background-color: #121212;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  padding: 40px;
  min-height: 100vh;
}

.table-container {
  margin-top: 30px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1f1f1f;
  border: 1px solid #444;
}

table th,
table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #444;
}

table th {
  background-color: #292929;
  color: #fff;
}

table tr:hover {
  background-color: #2e2e2e;
}

a.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #333;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

a.btn:hover {
  background-color: #555;
}
