@import url(https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --secondary-color: #0ea5a3;
  --accent-color: #1f2937;
}

/* English Theme - Blue */
html[data-language="en"] {
  --primary-color: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --secondary-color: #0ea5a3;
  --accent-color: #1f2937;
}

/* Arabic Theme - Green */
html[data-language="ar"] {
  --primary-color: #16a34a;
  --primary-light: #22c55e;
  --primary-dark: #166534;
  --secondary-color: #4d7c0f;
  --accent-color: #14532d;
}

/* French Theme - Orange */
html[data-language="fr"] {
  --primary-color: #ea580c;
  --primary-light: #fb923c;
  --primary-dark: #c2410c;
  --secondary-color: #f97316;
  --accent-color: #7c2d12;
}

html {
  direction: ltr;
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

body {
  font-family: 'Manrope', 'Cairo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  min-height: 100vh;
  display: block;
  transition: background 0.4s ease;
}

#root {
  width: 100%;
  height: 100%;
}

.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  transition: background 0.4s ease;
}

.app-header {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.app-header-subtitle {
  color: #fff;
  margin-top: 5px;
  opacity: 0.95;
}

html[dir="rtl"] .app-header {
  text-align: right;
}

html[dir="ltr"] .app-header {
  text-align: left;
}

.app-header h1 {
  font-size: 2.5em;
  margin-bottom: 5px;
  font-weight: 300;
  letter-spacing: 1px;
}

.app-header p {
  font-size: 0.95em;
  opacity: 0.9;
}

.app-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  padding: 50px;
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  width: 100%;
}

.login-form h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 1.8em;
  text-align: center;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 0.95em;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  font-family: inherit;
  direction: ltr;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.06);
}

/* color input styling */
.form-group input[type="color"] {
  padding: 6px;
  height: 42px;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.login-button {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Standardized button styles */
button {
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  border: none;
  font-weight: 500;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary buttons (add, save, etc.) */
button[type="submit"],
button.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.95em;
}

button[type="submit"]:hover,
button.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:active,
button.btn-primary:active {
  transform: translateY(0);
}

/* Secondary buttons (cancel, etc.) */
button[type="button"] {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  font-size: 0.95em;
}

button[type="button"]:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

button[type="button"]:active {
  background-color: #d0d0d0;
}

/* Edit button (inline in tables) */
button.btn-edit {
  padding: 4px 8px;
  background-color: var(--primary-color);
  color: white;
  margin-right: 6px;
  font-size: 0.85em;
}

button.btn-edit:hover {
  background-color: var(--secondary-color);
}

/* Delete button (inline in tables) */
button.btn-delete {
  padding: 4px 8px;
  background-color: #e74c3c;
  color: white;
  font-size: 0.85em;
}

button.btn-delete:hover {
  background-color: #c0392b;
}

/* Logout button */
.logout-button {
  padding: 10px 20px;
  background-color: #f44336;
  color: white;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.message {
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.loading {
  background-color: #e7f3ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.demo-credentials {
  margin-top: 25px;
  padding: 15px;
  background-color: #f0f4ff;
  border-left: 4px solid #667eea;
  border-radius: 4px;
  font-size: 0.9em;
  color: #555;
}

.demo-credentials h4 {
  color: #667eea;
  margin-bottom: 8px;
  font-weight: 600;
}

.demo-credentials p {
  margin: 5px 0;
  font-family: 'Courier New', monospace;
}

.dashboard-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  padding: 30px;
  width: 100%;
  max-width: 1320px;
  animation: slideUp 0.5s ease-out;
}

.modal {
  width: 100%;
}

.modal-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.form-actions-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.maintenance-form-card {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  background: #fff;
}

.maintenance-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.maintenance-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.catalog-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.catalog-form-grid-5 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.shop-create-form {
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fcfcfd;
}

.shop-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dashboard-tools {
  margin-bottom: 20px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 14px;
  background: #fafafa;
}

.dashboard-tools-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
}

.tool-input {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.btn-secondary {
  border: 1px solid #d0d0d0;
  background: #f1f1f1;
  color: #222;
  border-radius: 8px;
  padding: 8px 12px;
}

.tabs-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #f4f4f4;
  color: #333;
  font-weight: 600;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
}

.section-subtitle {
  margin-top: 6px;
  color: #667085;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
}

.search-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.search-card-wide {
  grid-column: 1 / -1;
}

.search-card h4 {
  margin-bottom: 8px;
}

.search-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-grid {
  margin-bottom: 14px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.kpi-card {
  border: 1px solid #ececec;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
}

.kpi-title {
  font-size: 0.88rem;
  color: #667085;
}

.kpi-value {
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h2 {
  color: #333;
  font-size: 1.8em;
}

.logout-button {
  padding: 10px 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  margin-bottom: 10px;
  opacity: 0.9;
  font-weight: 500;
}

.stat-card .value {
  font-size: 2.5em;
  font-weight: 700;
}

.data-section {
  margin-top: 30px;
}

.data-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
}

table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

html[dir="rtl"] table th,
html[dir="rtl"] table td {
  text-align: right;
}

table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #666;
}

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

@media (max-width: 768px) {
  .login-container {
    padding: 40px 25px;
  }

  .app-header h1 {
    font-size: 1.8em;
  }

  .app-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dashboard-container {
    padding: 16px;
    border-radius: 10px;
  }

  .app-content {
    padding: 16px 10px;
    align-items: stretch;
  }

  .logout-button {
    width: 100%;
    margin-top: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tools-row {
    grid-template-columns: 1fr;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 100%;
    padding: 14px;
  }

  .maintenance-detail-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-form-actions {
    flex-direction: column;
  }

  .maintenance-form-actions button {
    width: 100%;
  }

  .catalog-form-grid-3,
  .catalog-form-grid-5 {
    grid-template-columns: 1fr;
  }

  .shop-create-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.9em;
    min-width: 680px;
  }

  table th,
  table td {
    padding: 10px;
  }

  .data-section {
    overflow-x: auto;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .tool-input {
    font-size: 16px;
  }
}


/*# sourceMappingURL=main.css.map*/