/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #111111;
  color: #f2f2f2;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 100vh;
  background: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
  font-size: 1.6em;
  opacity: 0.8;
  border-radius: 8px;
  transition: background 0.2s, opacity 0.2s;
}

.menu-item.active,
.menu-item:hover {
  background: #444;
  opacity: 1;
}

/* Main Content */
.main-content {
  margin-left: 56px;
  padding: 20px;
  background: #222;
  color: #f2f2f2;
  min-height: 100vh;
}

header {
  background: #333;
  color: #f2f2f2;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 2.5em;
  font-family: "Arial Black", Arial, sans-serif;
  letter-spacing: 1px;
}

header .desmo {
  font-weight: bold;
  color: #000000;
}

/* Forms */
form {
  background: #181b20;
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #333a45;
  border-radius: 5px;
  background: #23262b;
  color: #f2f2f2;
}

form input:focus,
form textarea:focus {
  border-color: #1976d2;
  outline: none;
}

form button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

form button[type="submit"] {
  background: #28a745;
  color: #fff;
}

form button[type="button"] {
  background: #dc3545;
  color: #fff;
}

form button:hover {
  opacity: 0.9;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background: #444;
  color: #fff;
}

table tr:nth-child(even) {
  background: #333;
}

table tr:hover {
  background: #555;
}

/* Buttons */
button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

button.edit-btn {
  background: #007bff;
  color: #fff;
}

button.delete-btn {
  background: #dc3545;
  color: #fff;
}

button:hover {
  opacity: 0.9;
}

/* Responsive Sidebar & Header */
@media (max-width: 768px) {
  .sidebar {
    width: 48px;
  }

  .menu-item {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }

  .main-content {
    margin-left: 48px;
    padding: 15px;
  }

  header h1 {
    font-size: 2em;
  }
}
