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

/* Sidebar */
.sidebar {
  background-color: #2c3e50;
  color: white;
  width: 220px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.5em;
  user-select: none;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar nav ul li {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s;
}

.sidebar nav ul li:hover {
  background-color: #34495e;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  padding: 30px;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: white;
  display: flex;
  flex-direction: column;
}

/* Скриване на екрани */
.hidden {
  display: none !important;
}

/* Вход (login) екран */
#login-screen {
  max-width: 400px;
  margin: auto;
  padding: 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
}

#login-screen h1 {
  margin-bottom: 20px;
}

#login-screen input[type="text"],
#login-screen input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

#login-screen button {
  width: 100%;
  padding: 12px;
  background-color: #2980b9;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

#login-screen button:hover {
  background-color: #1c5980;
}

.error {
  color: red;
  margin-top: 10px;
  font-weight: 600;
}

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

header h1 {
  font-weight: 700;
  font-size: 1.4em;
}

.btn-logout {
  background-color: #c0392b;
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-logout:hover {
  background-color: #7a1e17;
}

/* Content area */
#content-area {
  flex-grow: 1;
  overflow-y: auto;
}

/* Таблици със заявки */
.requests-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.requests-table th,
.requests-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.requests-table th {
  background-color: #2980b9;
  color: white;
}

.requests-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.requests-table tr:hover {
  background-color: #e1e7f0;
}

/* Форми за заявка */
#content-area h2 {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  padding: 6px 10px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

table#products-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

table#products-table th,
table#products-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

#add-product-btn,
#submit-request-btn {
  background-color: #27ae60;
  border: none;
  color: white;
  padding: 10px 18px;
  margin-top: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

#add-product-btn:hover,
#submit-request-btn:hover {
  background-color: #1f8a44;
}

.remove-product-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.remove-product-btn:hover {
  background-color: #992d22;
}

