/* Основни настройки */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  display: flex;
}

.hidden {
  display: none !important;
}

input, button, select {
  font-family: inherit;
}

/* Сайдбар */
.sidebar {
  width: 240px;
  background-color: #1e1e2f;
  color: white;
  height: 100vh;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar h2 {
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 12px 0;
}

.sidebar nav ul li a {
  color: #bbb;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  background-color: #2d2d44;
  color: #fff;
}

/* Основно съдържание */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 20px;
  margin: 0;
}

.btn-logout {
  padding: 8px 14px;
  background-color: #e53935;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Екрани */
.screen {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.screen h1 {
  font-size: 26px;
  margin-bottom: 25px;
}

.screen input[type="text"],
.screen input[type="password"],
.screen input[type="number"],
.screen select {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.screen button {
  background-color: #007bff;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.screen button:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  font-size: 14px;
  margin-top: -15px;
  margin-bottom: 15px;
}

/* Таблица */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: white;
}

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

table th {
  background-color: #f1f3f5;
  font-weight: 600;
}

table tr:hover {
  background-color: #f9f9f9;
}

/* Продукти - визуално поле за въвеждане */
.product-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.product-row input {
  flex: 1;
}

.product-row .qty {
  max-width: 120px;
}

/* Отзивчивост */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}



