/* General Styles */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --header-height: 60px;
  --mobile-nav-height: 60px;
  --transition-speed: 0.3s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to bottom, #e8f0fe, #d4e4fd);
}

.login-card {
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  border: none;
}

.app-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.app-icon i {
  font-size: 28px;
  color: white;
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.app-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary-color);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
  padding: 0.25rem;
}

.spacer {
  width: 24px;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  height: var(--header-height);
}

.sidebar-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 0.25rem;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.sidebar-menu li.active .sidebar-link {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.sidebar-link i {
  font-size: 1.25rem;
  min-width: 30px;
}

.sidebar-text {
  margin-left: 0.5rem;
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-title {
  display: none;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed) ease;
  padding-top: 0;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

/* Dashboard Cards */
.dashboard-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0 0;
  color: var(--primary-color);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.activity-icon span {
  font-weight: 600;
  color: var(--primary-color);
}

.activity-details {
  flex: 1;
}

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

.activity-time {
  margin: 0;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

/* Order Cards */
.order-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.order-card:hover {
  transform: translateY(-5px);
}

.order-card.paid {
  border-left: 4px solid var(--success-color);
}

.order-card.pending {
  border-left: 4px solid var(--warning-color);
}

.order-card.canceled {
  border-left: 4px solid var(--danger-color);
}

.order-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.order-status.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

.order-status.paid {
  background-color: rgba(25, 135, 84, 0.1);
  color: var(--success-color);
}

.order-status.vendido {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
}

.order-status.canceled {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

.order-items {
  margin-bottom: 0;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-nav-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-nav-item {
  flex: 1;
  height: 100%;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.75rem;
}

.mobile-nav-link i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.mobile-nav-link.active {
  color: var(--primary-color);
}

.mobile-nav-link.active i {
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .sidebar {
    display: none; /* Hide sidebar on mobile */
  }

  .mobile-nav {
    display: block; /* Show mobile nav on mobile */
  }

  .main-content {
    margin-left: 0;
    padding-top: var(--header-height);
    padding-bottom: var(--mobile-nav-height); /* Add padding for mobile nav */
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .sidebar-overlay.show {
    display: block;
  }
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Preference Items */
.preference-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.preference-item:last-child {
  border-bottom: none;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Page Title */
.page-title {
  font-weight: 600;
  color: var(--dark-color);
}

/* Add these styles at the end of the file */

/* Order status for delivered */
.order-card.delivered {
  border-left: 4px solid #6f42c1; /* Purple for delivered */
}

.order-status.delivered {
  background-color: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}

/* Payment Modal */
.payment-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.payment-modal .modal-title {
  font-weight: 600;
}

.payment-modal .card {
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: none;
}

.payment-modal .form-select,
.payment-modal .form-control {
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.payment-modal .form-select:focus,
.payment-modal .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.payment-modal .btn {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
}

.payment-modal .btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  border: none;
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

.payment-modal .btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

/* Clear filters button */
.clear-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  transform: translateY(-2px);
}
