/* style.css - обновен за запазване на цветовете */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #333;
}

.sidebar {
  background-color: #003366;  /* тъмно син, както в оригинала */
  color: white;
  width: 220px;
  height: 100vh;
  position: fixed;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.8em;
  color: white;
}

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

.sidebar nav ul li {
  margin-bottom: 15px;
}

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  color: #ffcc00; /* жълто акцент */
}

.main-content {
  margin-left: 220px;
  padding: 30px;
  min-height: 100vh;
  background: #fff;
}

/* Login screen */
#login-screen {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

#login-screen h1 {
  margin-bottom: 30px;
  color: #003366;
  font-weight: 700;
  font-size: 2em;
  text-align: center;
}

#login-screen input[type="text"],
#login-screen input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #003366;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

#login-screen input[type="text"]:focus,
#login-screen input[type="password"]:focus {
  border-color: #ffcc00;
  outline: none;
}

#login-btn {
  width: 100%;
  padding: 12px;
  background-color: #003366;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#login-btn:hover {
  background-color: #002244;
}

.error {
  color: #cc0000;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* Dashboard header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #003366;
  padding-bottom: 10px;
}

header h1 {
  color: #003366;
  font-weight: 700;
}

.btn-logout {
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

thead tr {
  background-color: #003366;
  color: white;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #fffcdd;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
  font-size: 0.95em;
}

/* Buttons in tables */
button.accept-btn, button.reject-btn {
  padding: 6px 10px;
  margin-right: 5px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9em;
}

button.accept-btn {
  background-color: #28a745;
  color: white;
}

button.accept-btn:hover {
  background-color: #218838;
}

button.reject-btn {
  background-color: #dc3545;
  color: white;
}

button.reject-btn:hover {
  background-color: #c82333;
}

/* Product row in new request form */
.product-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-row input[type="text"],
.product-row input[type="number"],
.product-row select {
  padding: 8px 10px;
  font-size: 1em;
  border: 2px solid #003366;
  border-radius: 5px;
  flex: 1;
}

.product-row .remove-btn {
  background-color: #cc0000;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1;
  padding: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  flex: 0 0 40px;
  align-self: center;
  transition: background-color 0.3s ease;
}

.product-row .remove-btn:hover {
  background-color: #990000;
}

#add-product-btn,
#submit-request-btn {
  margin-top: 20px;
  padding: 10px 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #003366;
  color: white;
  transition: background-color 0.3s ease;
}

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




