:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --dark: #18181b;
  --light: #fafafa;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #f3f4f6;
  --bg-light: #f1f5f9;
  --bg-dark: #111827;
  --card-bg-light: #ffffff;
  --card-bg-dark: #1f2937;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.15);

  
  --calendar-mission-bg: #44d334; /* سبز روشن برای دارک مود */
  --calendar-off-bg: #fc2a2a; /* قرمز روشن برای دارک مود */
  --calendar-workday-bg: #60a5fa; /* آبی روشن برای دارک مود */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Theme colors */
body.purple-theme {
  --primary: #B13BFF;
  --primary-dark: #B13BFF;
}
body.blue-theme {
  --primary: #8A784E;
  --primary-dark: #8A784E;
}
body.green-theme {
  --primary: #78C841;
  --primary-dark: #78C841;
}
body.red-theme {
  --primary: #FB4141;
  --primary-dark: #FB4141;
}
body.orange-theme {
  --primary: #E67514;
  --primary-dark: #E67514;
}
body.dark-theme {
  --primary: #DC2525;
  --primary-dark: #DC2525;
}
body.navy-theme {
  --primary: #3D3BF3;
  --primary-dark: #3D3BF3;
}
body.midnight-theme {
  --primary: #111827;
  --primary-dark: #0f172a;
}
body.charcoal-theme {
  --primary: #4b5563;
  --primary-dark: #374151;
}
body.gold-theme {
  --primary: #E9A319;
  --primary-dark: #E9A319;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  animation: fadeIn 0.6s ease-out;
}
.app-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  animation: slideIn 0.5s ease-out;
}
.dark-mode .app-header {
  border-bottom-color: var(--border-dark);
}
.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.app-logo:hover {
  transform: rotate(360deg);
}
.author {
  font-size: 0.8rem;
  color: var(--primary);
  margin-right: 0.5rem;
}
.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}
.header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.app-nav {
  display: flex;
  gap: 0.5rem;
}
.nav-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dark-mode .nav-btn {
  color: var(--text-light);
}
.nav-btn.active {
  background: var(--primary);
  color: white;
  animation: bounceIn 0.3s ease;
}
.nav-btn:hover:not(.active) {
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}

.theme-selector {
  position: relative;
}
.theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}
.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}
.theme-icon {
  font-size: 1.5rem;
}
.theme-colors {
  position: absolute;
  top: 100%;
  /* Adjust left to center or align as needed */
  left: 0;
  background: var(--card-bg-light);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
  width: 220px;
  animation: fadeIn 0.3s ease-out; /* Changed animation */
}
.dark-mode .theme-colors {
  background: var(--card-bg-dark);
}
.theme-selector {
  position: relative;
}

.theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
}

.theme-icon {
  font-size: 1.5rem;
}

.theme-colors {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg-light);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
  width: 220px; /* یا هر عرض مناسب دیگر */
  animation: fadeIn 0.3s ease-out;
  /* اصلاح چیدمان به 5 ستون برای نمایش در 2 ردیف */
  gap: 0.5rem; /* اضافه شده برای فاصله بین آیتم‌ها */
}

.dark-mode .theme-colors {
  background: var(--card-bg-dark);
}

.theme-selector:hover .theme-colors {
  display: grid;
} /* فقط display: grid کافی است */
.color-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.color-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.color-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.dark-mode .color-btn:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-btn.selected::after {
  content: "✓";
  position: static;
  transform: none;
  color: white;
  font-size: 14px;
}

.lang-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dark-mode .lang-toggle {
  background: rgba(255, 255, 255, 0.1);
}
.lang-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}
.lang-text {
  font-size: 1.5rem;
}

.content-section {
  display: none;
}
.content-section.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}
.dashboard {
  background: var(--card-bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: slideIn 0.5s ease-out;
}
.dark-mode .dashboard {
  background: var(--card-bg-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.counters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.view-mode-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mode-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--card-bg-light);
  color: var(--text-dark);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  appearance: none;
}
.dark-mode .mode-select {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.mode-select:hover,
.mode-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  transform: scale(1.02);
  outline: none;
}

.counters-actions {
  display: flex;
  gap: 0.5rem;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.counters-grid .counter-card {
  animation: bounceIn 0.5s ease-out;
  animation-delay: calc(var(--index) * 0.1s);
}
.counters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.counter-card {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  /* Removed transform and box-shadow from here */
  transition: all 0.3s ease; /* Applied a general transition */
  position: relative;
  z-index: 1;
}
.counters-list .counter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.dark-mode .counter-card {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}
.counter-card:hover {
  transform: translateY(-5px); /* Adjusted transform for hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Adjusted box-shadow for hover */
  z-index: 2;
}
.counter-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}
.counters-list .counter-title {
  margin-bottom: 0;
  text-align: right;
  flex: 1;
}
.counter-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
  text-align: center;
}
.counters-list .counter-value {
  font-size: 1.5rem;
  margin: 0 1rem;
  min-width: 60px;
}
.counter-value.changed {
  animation: glow 0.5s ease;
}
.counter-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.counters-list .counter-actions {
  flex-direction: row;
  gap: 0.3rem;
}
.counters-list .counter-actions button {
  min-width: 30px;
  padding: 0.2rem 0.5rem;
}

.btn {
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:active {
  transform: scale(0.95);
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  min-width: 40px;
}
.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-warning {
  background: var(--warning);
  color: white;
}
.btn-warning:hover {
  background: #d97706;
}

.action-menu {
  position: relative;
}
.action-menu-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dark-mode .action-menu-btn {
  color: #9ca3af;
}
.action-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
  transform: rotate(90deg);
}
.dark-mode .action-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.action-menu-dropdown {
  display: none;
  position: absolute;
  top: 42%; /* Position below the button */
  right: 0; /* Align to the right of the button */
  background: var(--card-bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out; /* Changed animation */
  transform: none; /* Removed transform */
}
.ediit {
  top: 100%;
  margin-right: -120px;
}
.dark-mode .action-menu-dropdown {
  background: var(--card-bg-dark);
}
.action-menu-dropdown.show {
  display: block;
}
.counters-list .action-menu-dropdown {
  left: auto;
  right: 0;
  transform: none;
} /* Adjusted for list view */
.action-menu-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}
.action-menu-item:hover {
  background: rgba(59, 130, 246, 0.1);
}
.action-menu-item.delete {
  color: var(--danger);
}
.action-menu-item .icon {
  font-size: 1rem;
}

.edit-dropdown {
  display: none;
  position: absolute;
  top: 42%; /* Position below the button */
  right: 50%; /* Align to the right of the button */
  background: var(--card-bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 1000;
  border: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease-out; /* Changed animation */
  transform: none; /* Removed transform */
}
.dark-mode .edit-dropdown {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}
.edit-dropdown.show {
  display: block;
}
.edit-dropdown .action-menu-item {
  padding: 0.5rem 1rem;
}
[dir="rtl"] .edit-dropdown,
[dir="rtl"] .action-menu-dropdown {
  right: auto; /* Reset right */
  left: auto; /* Align to the left in RTL */
  transform: none; /* Removed transform */
}
[dir="rtl"] .counters-list .action-menu-dropdown {
  left: auto;
  right: auto;
  transform: none;
} /* Adjusted for list view in RTL */

.add-counter-section {
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.6s ease-out;
}
.stopwatch-container {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  animation: bounceIn 0.5s ease-out;
}
.dark-mode .stopwatch-container {
  background: var(--card-bg-dark);
}
.stopwatch-display {
  font-size: 3rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.stopwatch-display.running {
  color: var(--primary);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  animation: pulse 1s infinite;
}
.stopwatch-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.countdown-controls {
  margin-bottom: 1.5rem;
  text-align: center;
}
.countdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  justify-content: center;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.4s ease;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
}
input:checked + .slider {
  background: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.toggle-text {
  font-weight: 500;
}
.countdown-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.countdown-inputs input {
  width: 60px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  transition: transform 0.2s ease;
}
.countdown-inputs input:focus {
  transform: scale(1.05);
}
.dark-mode .countdown-inputs input {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.notes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.notes-container .note-item {
  animation: slideIn 0.5s ease-out;
  animation-delay: calc(var(--index) * 0.1s);
}
@media (max-width: 768px) {
  .notes-container {
    grid-template-columns: 1fr;
  }
}
.notes-editor {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease-out;
}
.dark-mode .notes-editor {
  background: var(--card-bg-dark);
}
.note-category-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.note-category-selector select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.or2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2rem;
  transition: transform 0.2s ease;
}
.note-category-selector select:focus {
  transform: scale(1.02);
}
.dark-mode .note-category-selector select {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}
.notes-editor textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  resize: vertical;
  background: var(--card-bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  white-space: pre-wrap;
  transition: transform 0.2s ease;
}
.notes-editor textarea:focus {
  transform: scale(1.01);
}
.dark-mode .notes-editor textarea {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.saved-notes-container {
  background: var(--card-bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease-out;
}
.dark-mode .saved-notes-container {
  background: var(--card-bg-dark);
}
.notes-search-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 0;
}
.notes-search-container input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  transition: transform 0.2s ease;
}
.notes-search-container input:focus {
  transform: scale(1.05);
}
.dark-mode .notes-search-container input {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}
.note-categories-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding: 0 1.5rem;
}
.dark-mode .note-categories-tabs {
  border-bottom-color: var(--border-dark);
}
.note-category-tab {
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.dark-mode .note-category-tab {
  color: var(--text-light);
}
.note-category-tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  animation: bounceIn 0.3s ease;
}
.note-category-tab:hover:not(.active) {
  color: var(--primary);
  transform: translateY(-2px);
}
.note-category-tab .delete-category {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: #6b7280;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}
.dark-mode .note-category-tab .delete-category {
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}
.note-category-tab:hover .delete-category {
  opacity: 1;
}
.note-category-tab .delete-category:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.2);
}

.notes-bulk-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
}
.dark-mode .notes-bulk-actions {
  border-bottom-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
}
.saved-notes {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}
.note-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.dark-mode .note-item {
  border-bottom-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
}
.note-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.note-item.selected {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary);
  animation: pulse 0.5s ease;
}
.dark-mode .note-item.selected {
  background: rgba(59, 130, 246, 0.2);
}
.note-content {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  white-space: pre-wrap;
  line-height: 1.6;
  padding-right: 3rem;
  margin-top: 2rem;
}
.note-date {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: left;
}
.dark-mode .note-date {
  color: #9ca3af;
}
.note-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dark-mode .note-selector {
  border-color: var(--border-dark);
}
.note-item.selected .note-selector {
  background: var(--primary);
  border-color: var(--primary);
}
.note-action-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.dark-mode .note-action-btn {
  background: rgba(255, 255, 255, 0.1);
}
.note-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}
.no-notes {
  text-align: center;
  color: #6b7280;
  padding: 1rem;
  animation: fadeIn 0.6s ease-out;
}
.dark-mode .no-notes {
  color: #9ca3af;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out;
  justify-content: center;
  align-items: center;
  height: 100%;
} /* Added flex properties for centering */
.modal.show {
  display: flex;
} /* Use flex when shown for centering */
.modal-content {
  background: var(--card-bg-light);
  margin: 10% auto; /* Changed from 10% auto */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  animation: bounceIn 0.5s ease-out;
  position: relative; /* Added for close button positioning */
}
.dark-mode .modal-content {
  background: var(--card-bg-dark);
}
.close-modal {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #9ca3af;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
} /* Adjusted positioning */
.close-modal:hover {
  color: var(--danger);
  transform: scale(1.2);
}
.modal h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-body {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  transition: transform 0.2s ease;
}
.modal-input:focus {
  transform: scale(1.05);
}
.dark-mode .modal-input {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}
.modal-textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  resize: vertical;
  line-height: 1.6;
  transition: transform 0.2s ease;
}
.modal-textarea:focus {
  transform: scale(1.01);
}
.dark-mode .modal-textarea {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.custom-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.custom-alert.show {
  opacity: 1;
  animation: slideIn 0.4s ease-out;
}
.custom-alert.success {
  background: #10b981;
}
.custom-alert.error {
  background: #ef4444;
}
.custom-alert.warning {
  background: #f59e0b;
}
.custom-alert-icon {
  font-size: 1.2rem;
}

.opener-container {
  background: var(--card-bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: bounceIn 0.6s ease-out;
}
.dark-mode .opener-container {
  background: var(--card-bg-dark);
}
.opener-header {
  text-align: center;
  margin-bottom: 2rem;
}
.opener-header h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.opener-header p {
  color: #6b7280;
}
.dark-mode .opener-header p {
  color: #9ca3af;
}
.opener-content {
  display: flex;
  gap: 2rem;
}
.orders-input-section {
  flex: 1;
}
.opener-textarea {
  width: 100%;
  min-height: 250px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: transform 0.2s ease;
}
.opener-textarea:focus {
  transform: scale(1.01);
}
.dark-mode .opener-textarea {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}
.opener-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  width: 300px;
  align-content: start;
}
.opener-actions .btn {
  width: 100%;
  padding: 0.8rem 0.5rem;
  font-size: 0.9rem;
}

.panel-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.panel-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}
.dark-mode .panel-tab {
  background: var(--card-bg-dark);
  color: var(--text-light);
}
.panel-tab.active {
  background: var(--primary);
  color: white;
  animation: pulse 0.3s ease;
}
.panel-tab:hover:not(.active) {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}
.dark-mode .panel-tab:hover:not(.active) {
  background: rgba(59, 130, 246, 0.2);
}

.auto-dropdown-menu {
  position: absolute;
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  min-width: 180px;
  display: none;
  animation: fadeIn 0.3s ease-out; /* Changed animation */
}
.dark-mode .auto-dropdown-menu {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}
.dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(5px);
}

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1100;
  color: white;
  font-weight: 500;
}
.alert-warning {
  background: #fef3c7;
  color: #92400e;
}
.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.performance-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
}
.dark-mode .performance-container {
  background: rgba(59, 130, 246, 0.2);
}
#performance-value {
  font-weight: bold;
  color: var(--primary);
  min-width: 10px;
  text-align: center;
}
#minutes-input {
  width: 50px;
  padding: 0.3rem;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  transition: transform 0.2s ease;
}
#minutes-input:focus {
  transform: scale(1.05);
}
.dark-mode #minutes-input {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-size: 1.5rem;
  flex-direction: column;
  animation: fadeIn 0.4s ease-out;
}
.loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes swing {
  0% {
    transform: translateY(-10px) rotate(2deg);
    opacity: 0;
  }
  50% {
    transform: translateY(0) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes glow {
  0% {
    text-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  100% {
    text-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .counters-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .stopwatch-display {
    font-size: 2rem;
  }
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
  .opener-content {
    flex-direction: column;
  }
  .opener-actions {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}
ormance-container {
  margin: 0.5rem 0;
  justify-content: center;
}

@media (max-width: 480px) {
  .opener-content {
    display: flex;
    gap: 2rem;
  }

  .opener-actions {
    grid-template-columns: 1fr;
  }
  .opener-actions .btn {
    padding: 0.7rem;
  }
  .opener-textarea {
    min-height: 200px;
  }
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  flex-wrap: wrap;
}
.note-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dark-mode .note-item {
  border-bottom-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
}
.note-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.note-item.selected {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary);
  animation: pulse 0.5s ease;
}
.dark-mode .note-item.selected {
  background: rgba(59, 130, 246, 0.2);
}
.note-content {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  white-space: pre-wrap;
  line-height: 1.6;
  flex: 1;
}
.note-date {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: left;
}
.dark-mode .note-date {
  color: #9ca3af;
}
.note-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dark-mode .note-selector {
  border-color: var(--border-dark);
}
.note-item.selected .note-selector {
  background: var(--primary);
  border-color: var(--primary);
}
.note-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-direction: row;
}
[dir="rtl"] .note-actions {
  left: auto;
  right: 1rem;
}
[dir="rtl"] .note-selector {
  right: auto;
  left: 1rem;
}
.note-action-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.dark-mode .note-action-btn {
  background: rgba(255, 255, 255, 0.1);
}
.note-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.calendar-container {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  direction: rtl; /* برای تقویم پارسی */
  background: #f9fafb;
  border-radius: 12px;
  max-width: 1200px; /* حداکثر عرض برای دسکتاپ */
  margin: 0 auto; /* مرکزسازی */
}
[dir="ltr"] .calendar-container {
  direction: ltr; /* برای تقویم انگلیسی */
}
.dark-mode .calendar-container {
  background: #1f2937;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  color: var(--primary);
  flex-wrap: wrap;
  overflow-wrap: break-word;
}

.note-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.dark-mode .note-item {
  border-bottom-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
}

.note-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.note-item.selected {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary);
  animation: pulse 0.5s ease;
}

.dark-mode .note-item.selected {
  background: rgba(59, 130, 246, 0.2);
}

.note-content {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  white-space: pre-wrap;
  line-height: 1.6;
  flex: 1;
  overflow-wrap: break-word;
  max-width: 100%;
}

.note-date {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: left;
}

.dark-mode .note-date {
  color: #9ca3af;
}

.note-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-mode .note-selector {
  border-color: var(--border-dark);
}

.note-item.selected .note-selector {
  background: var(--primary);
  border-color: var(--primary);
}

.note-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-direction: row;
}

[dir="rtl"] .note-actions {
  left: auto;
  right: 1rem;
}

[dir="rtl"] .note-selector {
  right: auto;
  left: 1rem;
}

.note-action-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dark-mode .note-action-btn {
  background: rgba(255, 255, 255, 0.1);
}

.note-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.calendar-container {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  direction: rtl; /* برای تقویم پارسی */
  background: var(--card-background);
  border-radius: 12px;
  max-width: 1200px; /* حداکثر عرض برای دسکتاپ */
  margin: 0 auto;
}

[dir="ltr"] .calendar-container {
  direction: ltr; /* برای تقویم انگلیسی */
}

.dark-mode .calendar-container {
  background: var(--card-background);
}

#calendar-weekday {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.calendar-weekday {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  overflow-wrap: break-word;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dark-mode .calendar-weekday {
  color: #e5e7eb;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(6px, 2vw, 12px);
  width: 100%;
  padding: 0 1rem;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(40px, 10vw, 60px);
  min-width: clamp(40px, 10vw, 60px);
  background: var(--calendar-day-bg);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--calendar-day-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-mode .calendar-day {
  background: var(--calendar-day-bg);
  color: var(--calendar-day-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-color: var(--border-dark);
}

.calendar-day:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
  border: none;
  box-shadow: none;
  color: transparent;
}

.dark-mode .calendar-day.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  color: transparent;
}

.calendar-day.mission {
  background: var(--calendar-mission-bg);
  color: #ffffff;
  border-color: var(--calendar-mission-bg);
}

.dark-mode .calendar-day.mission {
  background: var(--calendar-mission-bg);
  color: #ffffff;
  border-color: var(--calendar-mission-bg);
}

.calendar-day.off {
  background: var(--calendar-off-bg);
  color: #ffffff;
  border-color: var(--calendar-off-bg);
}

.dark-mode .calendar-day.off {
  background: var(--calendar-off-bg);
  color: #ffffff;
  border-color: var(--calendar-off-bg);
}

.calendar-day.workday {
  background: var(--calendar-workday-bg);
  color: #ffffff;
  border-color: var(--calendar-workday-bg);
}

.dark-mode .calendar-day.workday {
  background: var(--calendar-workday-bg);
  color: #ffffff;
  border-color: var(--calendar-workday-bg);
}

/* Media Query for Mobile (up to 768px) */
@media (max-width: 768px) {
  .calendar-container {
    padding: 0.5rem;
    max-width: 100%;
  }

  .calendar-header {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.6rem;
  }

  .note-item {
    padding: 0.7rem;
    margin-bottom: 0.7rem;
    gap: 0.4rem;
  }

  .note-content {
    padding: 0.4rem;
    font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  }

  .note-date {
    font-size: 0.7rem;
  }

  .note-selector {
    top: 0.7rem;
    right: 0.7rem;
    width: 18px;
    height: 18px;
  }

  .note-actions {
    top: 0.7rem;
    left: 0.7rem;
    gap: 0.4rem;
  }

  [dir="rtl"] .note-actions {
    left: auto;
    right: 0.7rem;
  }

  [dir="rtl"] .note-selector {
    right: auto;
    left: 0.7rem;
  }

  .note-action-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  #calendar-weekday {
    margin-bottom: 0.8rem;
    padding: 0 0.4rem;
  }

  .calendar-weekday {
    font-size: 12px;
  }

  #calendar {
    gap: clamp(4px, 1.2vw, 6px);
    padding: 0 0.4rem;
  }

  .calendar-day {
    height: clamp(50px, 50vw, 49px);
    min-width: clamp(30px, 7vw, 45px);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
    .tab-area {
  display: block;

}
}

/* Media Query for Tablet (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .calendar-container {
    padding: 0.8rem;
    max-width: 100%;
  }

  .calendar-header {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .note-item {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .note-content {
    padding: 0.5rem;
  }

  #calendar {
    gap: clamp(6px, 1.8vw, 10px);
  }

  .calendar-day {
    height: clamp(40px, 9vw, 55px);
    min-width: clamp(40px, 9vw, 55px);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  }

}

.hidden {
  display: none;
}
/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: none; /* Pure white to match light mode site background */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #4b5563; /* Darker gray for scrollbar thumb in light mode */
  border-radius: 4px;
}

.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg-dark); /* Match dark mode site background */
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: #9ca3af; /* Lighter gray for scrollbar thumb in dark mode */
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: #374151; /* Slightly darker on hover in light mode */
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #d1d5db; /* Slightly lighter on hover in dark mode */
}

#select-mission {
  background-color: #44d334
;
}















.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.dark-mode .tab-btn {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.tab-btn:hover:not(.active) {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.tab-area {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: var(--card-bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 0 auto;
  animation: bounceIn 0.6s ease-out;
}

.dark-mode .tab-area {
  background: var(--card-bg-dark);
}

.orders-input-section {
  flex: 1;
  min-width: 0;
}

.tab-content {
  display: none;
  justify-self: inherit;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {

    .tab-area {
  display: block;

}
}
