/* =================== */
/* Global Reset & Base */
/* =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #f4f6f9;
  display: flex;
  direction: ltr;
}

/* ======================== */
/* Login Page Styles       */
/* ======================== */
body.login-page {
  justify-content: center;
  align-items: center;
  background-color: #ecf0f1;
}

.login-container {
  background-color: white;
  border-radius: 12px;
  padding: 35px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 6px solid #2c3e50;
}

.login-container h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #34495e;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: #f8f9fa;
}

input:focus {
  outline: none;
  background-color: white;
}

select {
  width: 100%;
  padding: 12px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: #f8f9fa;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: #f8f9fa;
  resize: none;
}

button {
  padding: 4px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-1px);
}

a {
  display: block;
  text-align: center;
  color: #2c3e50;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

a:hover {
  color: #1abc9c;
}

/* ======================== */
/* Sidebar Navigation      */
/* ======================== */
#sidebar {
  width: 250px;
  background: #2c3e50;
  color: white;
  padding: 15px;
  min-height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

#sidebar h2 {
  text-align: center;
}

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

#sidebar ul li {
  padding: 12px;
  border-bottom: 1px solid #34495e;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

#sidebar ul li:hover {
  background: #1abc9c;
}

#sidebar ul li.active {
  background: #16a085;
  font-weight: bold;
}

#sidebar ul li.active:hover {
  background: #16a085;
}

/*דף חשבון*/
/* עיצוב קונטיינר ראשי */
.account-container {
  max-width: 900px;
  margin-inline: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* כותרת הדף */
.account-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* פריסת התיבות */
.details-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* עיצוב כל תיבה */
.details-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* כותרות קטנות בתוך התיבות */
.details-box h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* תיאור קטן מתחת לכותרת */
.details-description {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* תיבת הפרטים */
.info-box {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

/* שורה של מידע */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

/* השורה האחרונה בלי גבול תחתון */
.info-row:last-child {
  border-bottom: none;
}

/* עיצוב הערך בצד ימין */
.info-value {
  /* font-weight: bold; */
  color: #555;
}

/* עיצוב החץ בצד ימין */
.info-arrow {
  font-weight: bold;
  color: #777;
  cursor: pointer;
}

/* רספונסיביות */
@media (max-width: 768px) {
  .account-container {
    padding: 10px;
  }

  .info-row {
    font-size: 14px;
    padding: 10px;
  }
}

/*דף אנשי קשר*/
/* פריסה ראשית */
.contacts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  /* background-color: #f8f9fa; */
}
.page-header {
  /* border: 1px solid gray; */
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 10px;
  padding-block: 10px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: bold;
}

.page-buttons {
  display: flex;
  gap: 10px;
}
/* כותרת עמוד */
.contacts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 20px;
}

.contacts-header h1 {
  font-size: 26px;
  font-weight: bold;
}

.contacts-buttons {
  display: flex;
  gap: 10px;
}

.new-contact-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.new-contact-btn:hover {
  background-color: #218838;
}

/* תיבת החיפוש */
.contacts-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: 100%;
  max-width: 800px;
}

.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.filter-dropdown {
  cursor: pointer;
  color: #007bff;
}

/* הודעת אין נתונים */
.empty-message {
  display: flex;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.info-icon {
  font-size: 18px;
  color: #007bff;
}

/* לוגו תחתון */
.logo-section {
  text-align: center;
  font-weight: bold;
  padding: 10px;
  color: #333;
}

/* התאמות למסכים קטנים */
@media (max-width: 1024px) {
  .contacts-container {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .contacts-container {
    width: 90%;
  }

  .contacts-header {
    flex-direction: column;
    align-items: center;
  }
}
/*dashboard*/
/* פריסה ראשית */
.dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 20px;
  background-image: url("Bakery.jpg");
  background-repeat: no-repeat;
  /* background-color: #f8f9fa; */
  /* background-color: red; */
}

/* כותרת ראשית */
.page-title,
h1 {
  font-size: 28px;
  font-weight: bold;
  /* margin-bottom: 20px; */
  text-align: center;
}

/* ראש דשבורד */
.dashboard-header {
  text-align: center;
  margin-bottom: 20px;
}
.dashboard-header h1 {
  font-size: 32px;
  font-weight: bold;
}
.dashboard-header p {
  font-size: 28px;
}

/* פריסת דשבורד */
.dashboard-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin-top: 20px;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-block: 15px;
  min-width: 500px;
  /* flex: 1 1 350px; */
  max-width: 400px;
  overflow-y: auto;
}
.order-card {
  border-bottom: 1px solid #ddd;
  padding-block: 10px;
}
#this-week-orders {
  /* border: 1px solid red; */
  overflow-y: auto;
  max-height: 300px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: bold;
}

.card-content {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: start;
  padding-inline: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* כפתורים */
.btn {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-green {
  background-color: #28a745;
  color: white;
}
.btn-green:hover {
  background-color: #218838;
}

.btn-blue {
  background-color: #007bff;
  color: white;
}
.btn-blue:hover {
  background-color: #0056b3;
}
.btn-outline {
  background-color: #007bff;
  color: white;
}
.btn-outline:hover {
  background-color: #005fc4;
}
.select-item {
  padding: 12px;
}

/* תיבת חיפוש הזמנות */
.search-order {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.search-order h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.search-order p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* הזמנות*/
/* פריסה ראשית */
.orders-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* כותרת ראשית */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin-bottom: 20px;
}

/* קונטיינר לוח השנה */
.calendar-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 700px;
  width: 100%;
}

/* ניווט חודשים */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-title {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  margin: 0 10px;
}

/* רשת ימים */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
  justify-items: center;
  align-items: center;
}

/* כותרות ימות השבוע */
.day-label {
  font-weight: bold;
  color: #555;
}

/* עיצוב יום */
.day {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
}

/* יום נבחר */
.day.selected {
  background: #007bff;
  color: white;
  font-weight: bold;
}

/* יום עם אירוע */
.day.has-event {
  background: #ffcc00;
  font-weight: bold;
}

/* יום נוכחי */
.day.today {
  border: 2px solid #007bff;
  font-weight: bold;
  background: white;
  color: #007bff;
}

/* כותרת פרטי הזמנות */
.order-period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* הודעה שאין הזמנות */
.no-orders-message {
  text-align: center;
  font-size: 16px;
  padding: 15px 0;
  margin-top: 15px;
}
/*printables*/
/* פריסה ראשית */
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  /* background-color: #f8f9fa; רקע רך יותר */
}

/* כותרת ראשית */
.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 20px;
}

/* סגנון כללי לאקורדיון */
.accordion {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.accordion-content {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-content a {
  display: block;
  text-decoration: none;
  color: #007bff;
  padding: 10px;
  border-radius: 5px;
  background: #f8f9fa;
}

.accordion-content a:hover {
  background: #e2e6ea;
}
/*מוצרים*/
/* פריסה ראשית */
.page-container,
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  width: calc(100% - 250px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  /* background-color: #f8f9fa; רקע רך יותר */
}

/* כותרת ראשית */
.page-title,
h1 {
  /* font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 20px; */
}

/* תיבת חיפוש */
.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* כפתור */
.button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
}

.button:hover {
  background-color: #218838;
}
.new-order-form-btn {
  width: auto;
  padding-inline: 16px;
}

/* טבלת מוצרים */
.products-table {
  width: 100%;
  /* max-width: 800px; */
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.products-table table {
  width: 100%;
  border-collapse: collapse;
}

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

.products-table th {
  background: #f8f9fa;
  font-weight: bold;
}

.empty-message {
  text-align: center;
  padding: 20px;
}

/* גריד של קלפים */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card h3 {
  font-size: 18px;
  margin: 10px 0;
}

.card p {
  font-size: 14px;
  margin-bottom: 15px;
}

.info-header {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.info-content p {
  font-size: 14px;
  padding-block: 5px;
  margin: 5px 0;
}
/*משימות*/
/* פריסה ראשית */

/* תיבת מידע */
.info-box {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
}

/* שורת חיפוש */
.search-bar {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* תיבת המשימות */
.task-section {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
}

.task-section h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.task-section p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* לוח שנה */
.calendar {
  width: 100%;
  max-width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-top: 20px;
}

.calendar h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.calendar p {
  font-size: 14px;
  margin-bottom: 10px;
}

#new-order-form {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
}
#new-product-form {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.new-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
}

#actions-cell {
  display: flex;
  gap: 8px;
}
