/* TTMenus Update UI Styles */

/* Base Styles */
* {
  box-sizing: border-box;
}
body{
  margin: 0;
  padding: 0;
}

/* Status Badges */
.badge {
}

.badge-draft {
  background: #fbbf24;
  color: #78350f;
}

.badge-new {
  background: #34d399;
  color: #064e3b;
}

.badge-deleted {
  background: #ef4444;
  color: white;
}

.menu-item-card.draft {
  border-left: 4px solid #fbbf24;
  background: #fffbeb;
}

.menu-item-card.deleted {
  opacity: 0.6;
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.menu-item-title.deleted {
  text-decoration: line-through;
  color: #991b1b;
}

.menu-item-image.deleted {
  opacity: 0.5;
  filter: grayscale(100%);
}
/* Dashboard Container */
.dashboard-container {
  max-width: 100%;
  margin: 0 auto;
  background: #f9fafb;
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
}

.dashboard-header {
  color: white;
  padding: .4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(135deg, #242938 0%, #2b3140 100%);
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-direction: row;
}

.dashboard-title {
  margin: 0;
  font-size: x-large;
  font-weight: 600;
}

/* Dashboard Navigation Links */
.dashboard-nav-link {
  color: rgb(0 0 0 / 80%);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.dashboard-nav-link:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-nav-link.active {
  color: #000000;
  background: rgb(0 0 0 / 20%);
  border-bottom: 2px solid white;
}

/* Dashboard Navigation Container */
.dashboard-nav {
  display: flex;
  gap: 1rem;
}

.dashboard-user {
  display: flex;
  align-items: center;
  width: -webkit-fill-available;
  gap: .4rem;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: x-small;
}

.user-email {
  display: block;
  font-size: x-small;
  opacity: 0.8;
  color: #dedede;
}

.btn-logout {
  background: rgba(255,255,255,0.2);
  color: #ff0000;
  border: 1px solid rgb(255 0 0 / 30%);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.3);
}

/* Tab Navigation - Vertical Sidebar */
.tab-navigation {
  background: white;
  border-right: 1px solid #e5e7eb;
  border-bottom: none !important;
  padding: 1rem 0;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto;
  overflow-x: hidden !important;
  position: sticky;
  z-index: 11;
  top: 0;
  max-height: calc(100vh - 60px);
  box-shadow: 2px 0 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: none !important;
  margin: 0.25rem 0.5rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-left: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.3s;
  text-align: left;
  border-radius: 6px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: calc(100% - 1rem);
  position: relative;
}

.tab-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1;
  min-width: 1.5rem;
  text-align: center;
}

.tab-text {
  flex: 1;
  text-align: left;
}

.tab-btn > span:first-child {
  flex: 1;
  text-align: left;
}

.tab-btn:hover {
  color: #1e293b;
  background: #f3f4f6;
}

.tab-btn.active {
  color: #fff;
  border-left-color: #00ff52;
  border-bottom-color: transparent !important;
  background: #1e293b;
}

.tab-btn.active:hover {
  background: #334155;
}

.dashboard-content {
  padding: .4rem;
  margin: 0;
  flex: 1;
  overflow-x: hidden;
}

/* Dashboard wrapper for sidebar layout */
.dashboard-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex: 1;
  min-height: 0;
  align-items: flex-start;
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: block !important;
  width: -webkit-fill-available;
}

/* Section Card */
.section-card {
  background: white;
  border-radius: 12px;
  padding: .5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Collapsible Sections */
.collapsible-section {
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.collapsible-header {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.collapsible-header:hover {
  background: #f3f4f6;
}

.collapsible-content {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.collapse-icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
  display: inline-block;
}

.collapsible-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #1e293b;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #1e293b;
  box-shadow: 0 0 0 3px rgba(30,41,59,0.1);
}

.form-textarea {
  min-height: 120px;
  font-family: inherit;
  resize: vertical;
}

/* Buttons */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #1e293b;
  color: white;
}

.btn-primary:hover {
  background: #334155;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: #16a34a;
  color: white;
}

.btn-success:hover {
  background: #15803d;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Location Card */
.location-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  flex-direction: column;
}

.location-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
  color: #111;
}

.location-address {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 1.2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4em;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-close:hover {
  background: #f3f4f6;
}

/* Color Picker */
.color-picker-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  align-items: center;
}

.color-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.image-upload-area:hover {
  border-color: #1e293b;
  background: #f9fafb;
}

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 1rem;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

/* Category Section */
.category-section {
  margin-bottom: 2rem;
}

.category-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: -webkit-fill-available;
}

.category-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.category-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
  color: #fff;
}

.category-info {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
}

.category-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all 0.3s;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Category Items Grid */
.category-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Menu Item Card */
.menu-item-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s;
  width: -webkit-fill-available;
  max-width: 100%;
  min-width: -webkit-fill-available;
}

.menu-item-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-item-card.draft {
  border: 2px solid #f59e0b;
}

.menu-item-card.deleted {
  border: 2px solid #dc2626;
  opacity: 0.6;
  background: #fef2f2;
}

.menu-item-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.menu-item-image.deleted {
  filter: grayscale(100%);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.menu-item-title {
  margin: 0;
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.menu-item-title.deleted {
  text-decoration: line-through;
}

.menu-item-position {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.menu-item-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.menu-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75rem 0;
}

.menu-item-price {
  color: #16a34a;
  font-weight: 600;
  font-size: 1.125rem;
}

.menu-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.menu-item-drag-handle {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #9ca3af;
  cursor: move;
  text-align: center;
}

/* Add Item Card */
.add-item-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #d1d5db;
  cursor: pointer;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s;
}

.add-item-card:hover {
  border-color: #1e293b;
  background: #f3f4f6;
}

.add-item-content {
  text-align: center;
  color: #6b7280;
}

.add-item-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.add-item-text {
  margin: 0;
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 12px;
  font-size: x-small;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-draft {
  background: #f59e0b;
  color: white;
  margin-left: 0.5rem;
}

.badge-new {
  background: #10b981;
  color: white;
  margin-left: 0.5rem;
}

.badge-deleted {
  background: #dc2626;
  color: white;
  margin-left: 0.5rem;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-info {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-secondary {
  background: #e5e7eb;
  color: #374151;
}

/* Menu item tags container */
.menu-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Draft and deleted borders */
.menu-item-card.draft {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.menu-item-card.deleted {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  opacity: 0.7;
}

/* Location card specific adjustments */
.location-card .menu-item-description {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Opening hours sections */
.hours-day-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.hours-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hours-day-header .form-subsection-title {
  margin: 0;
}

.hours-entries-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-entry {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

.hours-entry select,
.hours-entry input {
  margin-bottom: 0;
}

.hours-entry-remove-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .hours-entry {
    grid-template-columns: 1fr;
  }
  
  .hours-day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .hours-day-header .action-buttons {
  }
}

/* Color picker with alpha */
.color-picker-with-alpha {
  display: flex;
  flex-direction: column;
}

.color-picker-grid {
  display: flex;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
  align-items: center;
}

.alpha-slider {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.opacity-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(59, 130, 246, 0.3) 25%, 
    rgba(59, 130, 246, 0.6) 50%, 
    rgba(59, 130, 246, 0.9) 75%, 
    rgb(59, 130, 246) 100%);
  outline: none;
  -webkit-appearance: none;
}

.opacity-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-range:hover::-webkit-slider-thumb {
  background: #2563eb;
}

.opacity-range:hover::-moz-range-thumb {
  background: #2563eb;
}

/* Draft count in category header */
.draft-count {
  background: #f59e0b;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* Search Results Banner */
.search-results-banner {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 4px;
}

.search-results-text {
  margin: 0;
  color: #065f46;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.loading-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.loading-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.loading-subtitle {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state-subtitle {
  font-size: 0.875rem;
}

/* Additional Utility Classes */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-header-info h2 {
  margin: 0;
}

.section-header-info p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.section-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.image-preview-container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.image-preview-container img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.card-filename {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  overflow: scroll;
}

.card-filesize {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.card-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.warning-title {
  margin: 0;
  color: #92400e;
  font-weight: 600;
}

.warning-text {
  margin: 0.5rem 0 0;
  color: #78350f;
  font-size: 0.875rem;
}

.pending-changes-grid {
  display: grid;
  gap: 0.75rem;
}

.pending-change-card {
  background: white;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pending-change-card.deleted {
  border-color: #dc2626;
}

.pending-change-info strong {
  display: block;
  color: #1e293b;
}

.pending-change-status {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.status-new {
  color: #10b981;
}

.status-deleted {
  color: #dc2626;
}

.status-edited {
  color: #f59e0b;
}

.location-details {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.delivery-info {
  margin-top: 0.5rem;
  color: #10b981;
  font-size: 0.875rem;
}

.hours-info {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.badge-group {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.location-card-content {
  flex: 1;
}

.location-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Modal Form Actions */
.modal-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label .form-label {
  margin: 0;
}

/* Form Section Title */
.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

/* Grid Layouts for Forms */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Price and Image Entries */
.price-entry,
.image-entry,
.side-category-entry {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.side-item-entry {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.entry-remove-btn {
  margin-top: 0.5rem;
}

.side-item-remove-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.entry-add-margin {
  margin-bottom: 1rem;
}

.form-subsection-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #374151;
}

/* Image Preview Box */
.image-preview-box {
  background: white;
  border: 2px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.image-preview-box img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto 10px auto;
}

.empty-preview {
  color: #666;
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 2rem 1rem;
  cursor: pointer;
}

/* Tag Management */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  min-height: 40px;
  padding: 0.4rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  flex-direction: row;
  justify-content: flex-start;
}

.tags-container:empty::before {
  content: 'No tags added yet';
  color: #9ca3af;
  font-size: 0.875rem;
}

.tag-item {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  background: #3b82f6;
  gap: .2em;
  color: white;
  border-radius: 20px;
  font-size: x-small;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
  flex-direction: row;
  text-transform: capitalize;
}

.tag-item .tag-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.tag-item .tag-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tag-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: -webkit-fill-available;
}

.tag-input-group .form-input {
  flex: 1;
  margin-bottom: 0;
  max-width: 100%;
}

.tag-input-group .btn {
  white-space: nowrap;
  width: fit-content;
  margin-top: 0;
  height: -webkit-fill-available;
}

/* File input styling */
.form-input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.form-input[type="file"]::file-selector-button {
  background: #1e293b;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-right: 1rem;
}

.form-input[type="file"]::file-selector-button:hover {
  background: #334155;
}

/* Form Helper Text */
.form-helper {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* Alert spacing override */
.alert.spacing-bottom {
  margin-bottom: 1.5rem;
}

/* Pending Count Badge */
.pending-count-badge {
  display: none;
  background: #dc2626;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.pending-count-badge.visible {
  display: inline-block;
}

/* Action Buttons Container */
.action-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-direction: row;
  justify-content: center;
  width: -webkit-fill-available;
}

/* Responsive - Mobile Icon-Only Sidebar */
@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: row !important;
  }
  
  .tab-navigation {
    max-height: calc(100vh - 60px);
    border-right: 1px solid #e5e7eb;
    border-bottom: none;
    flex-direction: column !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
  }
  
  .tab-btn {
    margin: 0rem;
    padding: 0.875rem 0.5rem;
    border-left: 3px solid transparent;
    border-bottom: none !important;
    width: calc(100%);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
    min-width: auto;
  }
  
  .tab-icon {
    font-size: 1.5rem;
    min-width: auto;
    display: block;
  }
  
  .tab-text {
    display: none !important;
  }
  
  .pending-count-badge {
    position: absolute !important;
    top: 0.125rem;
    right: 0.125rem;
    font-size: 0.825rem;
    padding: 0.125rem 0.375rem;
    min-width: 1rem;
    text-align: center;
    display: inline-block;
  }
  
  .pending-count-badge.visible {
    display: inline-block !important;
  }
  
  .tab-btn.active {
    border-left-color: #00ff52;
    border-bottom-color: transparent !important;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .section-header-actions {
    width: 100%;
  }
  
  .section-header-actions .btn {
    flex: 1;
  }
  
  .grid-auto,
  .grid-auto-sm {
    grid-template-columns: 1fr;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-actions {
    width: 100%;
  }

  .category-items {
    grid-template-columns: 1fr;
  }

  .menu-item-actions {
    flex-direction: column;
  }

  .menu-item-actions button {
    width: 100%;
  }
  
  .pending-change-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .location-card-actions {
    width: 100%;
    margin-top: 1rem;
  }
  
  .location-card-actions .btn {
    flex: 1;
  }
  
  .dashboard-nav-link {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
  
  .dashboard-header {
  }
  
  .dashboard-nav {
    gap: 0.5rem;
  }
  
  .modal-form-actions {
    flex-direction: column;
  }
  
  .modal-form-actions .btn {
    width: 100%;
  }
  
  .action-buttons {
  }
  
  .action-buttons .btn {
    width: 100%;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Additional mobile responsive for small screens */
@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.dashboard-brand {
    font-size: x-small;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Image Upload Container Styles */
.image-upload-container {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  background: #f9fafb;
}

.image-preview-wrapper {
  margin-bottom: 0.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-preview-empty {
  color: #9ca3af;
}

.image-preview-empty-text {
  color: #9ca3af;
  font-size: 0.875rem;
}

.image-upload-buttons {
  display: flex;
  gap: 0.5rem;
}

.image-upload-buttons .btn {
  flex: 1;
}

/* Form Spacing Utilities */
.form-group-spacing-top {
  margin-top: 1.5rem;
}

/* Text Utilities */
.text-muted {
  color: #9ca3af;
}

.text-muted-small {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Flex Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-gap {
  display: flex;
  gap: 0.5rem;
}

.flex-gap-sm {
  display: flex;
  gap: 0.25rem;
}

/* Collapsible Section Header */
.collapsible-header-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapsible-header-icon {
  font-size: 1.25rem;
}

/* Text Helpers */
.text-helper {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.text-helper-small {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Spacing Utilities */
.spacing-top {
  margin-top: 1rem;
}

.spacing-top-sm {
  margin-top: 0.5rem;
}

.spacing-top-xs {
  margin-top: 0.25rem;
}

.spacing-bottom {
  margin-bottom: 1rem;
}

.spacing-bottom-sm {
  margin-bottom: 0.5rem;
}

/* Grid Utilities */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.grid-auto-fit-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Form Textarea Special */
.form-textarea-code {
  min-height: 200px;
  font-family: 'Consolas', 'Monaco', monospace;
}

/* Timeline Container */
.timeline-container {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  max-height: 80vh;
  overflow-y: auto;
}

.timeline-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Helper Text with Icon */
.form-helper-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Color Picker Input */
.color-picker-input {
  width: 60px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
}

/* Image Preview Labels */
.image-preview-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.image-preview-path {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Alert Styles */
.alert-centered {
  text-align: center;
  padding: 3rem 2rem;
}

.alert-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.alert-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.alert-text {
  margin: 0;
  color: #6b7280;
}

.alert-info-centered {
  text-align: center;
  padding: 2rem;
}

.alert-icon-medium {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.alert-subtitle {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Image Preview Box */
.image-preview-box {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
}

.image-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* Image Grids */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* Stat Cards with Gradients */
.stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
}

.stat-card-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  opacity: 0.9;
}