/* styles.css */
body {
  margin: 0;
  font-family: 'Cairo', 'Roboto', sans-serif;
  background: url("bg.jpg") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #130e0e;
}

.sidebar {
  width: 135px;
  height: 100vh; /* ← هذا هو المطلوب */
  background-color: #1f2937ee;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: all 0.3s ease;
}




.sidebar.hidden {
  width: 40px;
  padding: 20px 10px;
}

.sidebar h2 {
  margin: 0 0 20px;
  font-size: 20px;
  white-space: nowrap;
}

.sidebar a {
  color: white;
  text-decoration: none;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.sidebar a:hover {
  background-color: #374151;
}

.sidebar.hidden a span {
  display: none;
}

.toggle-sidebar {
  background-color: #2563eb;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 5px;
  align-self: flex-end;
  transition: background-color 0.1s;
}

.toggle-sidebar:hover {
  background-color: #1e40af;
}

.navbar {
  background-color: #1f2937ee;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-name {
  color: white;
}


.logo {
  width: 100px;
  height: auto;
  border-radius: 8px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-select {
  padding: 5px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: transparent;
}

.card {
  background: #ffffffcc;
  padding: 20px;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px; /* 20px بين الصفوف و 30px بين الأعمدة */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
}

table td input, table td select {
  padding: 8px;
  font-size: 14px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
}

table td input[type="number"] {
  text-align: right;
}

table td .total {
  font-weight: bold;
  color: #2d6a4f;
}

table td .delete-row {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

table td .delete-row:hover {
  background-color: #c82333;
}

table td input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

table td select, table td input[type="text"] {
  font-size: 13px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

table td input[type="number"] {
  text-align: right;
}

table td input:focus, table td select:focus {
  border-color: #2563eb;
}

button {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

table td input[readonly] {
  background-color: #f5f5f5;
}

.btn-primary {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.form-container button {
  grid-column: span 2; /* يمتد الزر على العمودين */
  justify-self: start;
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}

.breadcrumbs a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}
.add-btn {
  background-color: #0f25e7;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.card-header .actions {
  display: flex;
  gap: 10px;
}

#logout-btn {
  background-color: #ef4444; /* لون أحمر جميل */
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

#logout-btn:hover {
  background-color: #dc2626; /* أغمق عند التمرير */
}
#language-select {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  color: #333;
  margin-left: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#language-select:hover {
  border-color: #2563eb;
}
.notification-wrapper {
  position: relative;
  margin-left: 15px;
}

.notification-icon {
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
  position: relative;
}

.notification-icon:hover {
  color: #ffffff;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ffffff;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  display: none;
}

.notification-dropdown {
  display: none;
  position: absolute;
  top: 28px;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 12px;
  z-index: 999;
  font-size: 14px;
  text-align: center;
}
.generate-barcode-btn {
  background-color: #2563eb;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.generate-barcode-btn:hover {
  background-color: #1e40af;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
