* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated to dark theme with yellow, gray, and black colors */
:root {
  --primary: #f5c518;
  --primary-dark: #f5c518;
  --primary-light: #ffdf43;

  --accent: #ff5e5e;
  --accent-dark: #ff3f6e;

  --secondary: #888888;

  --success: #3cb650;
  --danger: #ff4444;
  --warning: #f5c518;

  --background: #1f1f1f;
  --surface: #2a2a2a;
  --text: #f5f5f5;
  --text-secondary: #c7c7c7;
  --border: #3a3a3a;
  --card-bg: #2a2a2a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.9);

  --gradient-primary: linear-gradient(135deg, #f5c518 0%, #d4a408 100%);
  --gradient-accent: linear-gradient(135deg, #ff5e5e 0%, #ff3f6e 100%);
  --gradient-success: linear-gradient(135deg, #3cb650 0%, #00ffb3 100%);
  --background-gradient: linear-gradient(180deg, #1f1f1f 0%, #242424 50%, #1e1e1e 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enhanced header with gradient background and better shadows */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  background: rgba(42, 42, 42, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo area with icon and clickable home button */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
}

/* Enhanced search bar with gradient border on focus */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 3.5rem 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Added search button styles with magnifying glass icon */
.search-btn {
  position: absolute;
  right: 0.5rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
  box-shadow: var(--shadow);
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.search-btn:active {
  transform: scale(0.95);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Enhanced cart badge with gradient and animation */
.cart-badge {
  position: relative;
}

.cart-badge .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 9999px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Enhanced buttons with gradients and better hover effects */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Enhanced product cards with better shadows and hover effects */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(107, 114, 128, 0.05) 100%);
  transition: transform 0.3s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Enhanced like button with heart animation */
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  transition: all 0.2s;
  border-radius: 0.5rem;
}

.like-btn:hover {
  transform: scale(1.2);
  background: rgba(251, 191, 36, 0.1);
}

.like-btn.liked {
  color: var(--primary);
  animation: heartbeat 0.3s;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Enhanced form inputs with better focus states */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--surface);
  color: var(--text) !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
  transform: translateY(-1px);
  color: var(--text) !important;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Added specific input text color rules */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  color: var(--text) !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Enhanced cart layout with proper mobile stacking */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary-section {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Enhanced cart items with better visual hierarchy */
.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.cart-item-info {
  flex: 1;
}

.cart-item-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quantity-input {
  width: 70px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-weight: 600;
}

/* Added quantity control buttons for cart */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.quantity-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.quantity-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-display {
  min-width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

/* Enhanced stat cards with gradients */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced table with better styling */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  min-width: 800px;
}

thead {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(245, 197, 24, 0.05) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr {
  transition: all 0.2s;
}

tbody tr:hover {
  background: rgba(245, 197, 24, 0.05);
  transform: scale(1.01);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Better spacing for admin product images in table */
table img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Admin action buttons with better spacing */
td .btn {
  margin: 0.25rem;
  white-space: nowrap;
}

td .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Enhanced status badges with gradients */
.status-badge {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.status-paid {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.status-canceled {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

/* Enhanced alerts with better styling */
.alert {
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #10b981;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #ef4444;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 2px solid #2563eb;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Admin header with better layout */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  margin: 0;
  color: var(--text);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Better select and filter styling for admin */
select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 150px;
}

select:hover {
  border-color: var(--primary);
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

select option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .search-bar {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  /* Mobile cart layout - stack vertically with summary at bottom */
  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .cart-items-section {
    width: 100%;
    order: 1;
  }

  .cart-summary-section {
    width: 100%;
    order: 2;
    position: static;
  }

  .cart-summary-card {
    padding: 1.25rem;
  }

  .cart-item {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .cart-item-info {
    width: 100%;
  }

  .cart-item-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .cart-item-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .quantity-input {
    width: 70px;
    padding: 0.625rem;
  }

  .cart-item-actions .btn {
    flex: 1;
    margin-left: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile header adjustments */
  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .nav-links a {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Mobile search */
  .search-bar input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .search-btn {
    width: 36px;
    height: 36px;
  }

  /* Mobile buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Mobile product cards */
  .product-image {
    height: 180px;
    object-fit: contain;
  }

  .product-info {
    padding: 1rem;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  /* Mobile forms */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Mobile checkout */
  .checkout-layout {
    display: flex;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .checkout-form,
  .checkout-summary {
    width: 100% !important;
  }

  /* Mobile tables */
  table {
    min-width: 700px;
  }

  th {
    padding: 1rem 0.75rem;
    font-size: 0.8125rem;
  }

  td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
  }

  table img {
    width: 60px;
    height: 60px;
  }

  td .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Admin header mobile layout */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions .btn,
  .admin-actions select {
    width: 100%;
  }

  select {
    min-width: 100%;
  }

  /* Mobile stats */
  .stat-card {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  /* Mobile admin */
  .admin-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions .btn {
    width: 100%;
  }

  /* Mobile payment page */
  .payment-container {
    padding: 1rem;
  }

  .qr-code-container {
    padding: 1.5rem;
  }

  .qr-code-container img {
    max-width: 250px;
  }

  /* Mobile orders */
  .order-card {
    padding: 1rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .order-actions {
    width: 100%;
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
    object-fit: contain;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  table {
    min-width: 600px;
  }

  /* Fixed incomplete CSS rule */
  th,
  td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }

  table img {
    width: 50px;
    height: 50px;
  }
}

/* Added loading screen styles with beautiful animations */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loading-logo {
  margin-bottom: 2rem;
  animation: bounceIn 1s ease-out;
}

.loading-logo-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.loading-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: glow 2s ease-in-out infinite;
}

.loading-bar {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8), #fff);
  border-radius: 9999px;
  animation: loading 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 50px rgba(255, 255, 255, 0.6);
  }
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* Mobile loading screen adjustments */
@media (max-width: 768px) {
  .loading-logo-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }

  .loading-title {
    font-size: 2rem;
  }

  .loading-bar {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .loading-logo-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .loading-title {
    font-size: 1.75rem;
  }

  .loading-bar {
    width: 200px;
  }
}

/* Utility classes */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}

/* Added review and rating styles */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.rating-stars {
  color: var(--primary);
  font-size: 1.25rem;
}

.rating-text {
  color: var(--text-secondary);
  font-weight: 600;
}

.product-rating-small {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 600;
}

.reviews-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.review-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.star-rating {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  margin: 1rem 0;
}

.star-btn {
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
  user-select: none;
}

.star-btn:hover {
  transform: scale(1.2);
  color: var(--primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-rating {
  color: var(--primary);
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.review-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.review-comment {
  color: var(--text);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* Added image gallery styles with lightbox and navigation arrows */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  max-width: 100%;
  max-height: 100%;
}

.main-image-container:hover .main-image {
  transform: scale(1.05);
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
  z-index: 10;
}

.image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.image-nav-btn.prev {
  left: 1rem;
}

.image-nav-btn.next {
  right: 1rem;
}

.thumbnail-images {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  min-width: 100px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Lightbox modal for full-size image viewing */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

/* Mobile product detail adjustments */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-image-container {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .main-image {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .product-image {
    height: 200px;
    object-fit: contain;
  }

  .thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
  }

  .image-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .image-nav-btn.prev {
    left: 0.5rem;
  }

  .image-nav-btn.next {
    right: 0.5rem;
  }

  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .lightbox-nav.prev {
    left: 1rem;
  }

  .lightbox-nav.next {
    right: 1rem;
  }

  .lightbox-close {
    top: -2.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .review-form-card {
    padding: 1.5rem;
  }

  .star-rating {
    font-size: 1.75rem;
  }

  .review-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* Added styles for separate main and secondary image upload areas */
.image-upload-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-upload-group {
  background: var(--background);
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.image-upload-group:hover {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.05);
}

.image-upload-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

.image-upload-group input[type="file"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s;
}

.image-upload-group input[type="file"]:hover {
  border-color: var(--primary);
}

.upload-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Added size selector styles */
.size-selector {
  margin: 1.5rem 0;
}

.size-selector label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.125rem;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.size-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1rem;
  min-width: 60px;
  text-align: center;
}

.size-btn:hover {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.1);
  transform: translateY(-2px);
}

.size-btn.selected {
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.size-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--surface);
}

.size-btn:disabled:hover {
  transform: none;
  border-color: var(--border);
}

/* Added checkbox styles for size selection in admin */
.size-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.size-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s;
}

.size-checkbox-item:hover {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.05);
}

.size-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.size-checkbox-item label {
  cursor: pointer;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.size-checkbox-item input[type="checkbox"]:checked + label {
  color: var(--primary);
}

/* Added error state for size selector */
.size-selector.error {
  animation: shake 0.5s;
}

.size-selector.error label {
  color: var(--danger);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Size selector required indicator */
.size-selector label::after {
  content: " *";
  color: var(--danger);
  font-weight: bold;
}

/* Added styles for PIX payment section with black text */
.qr-code-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  color: #000000 !important;
}

.qr-code-container h2,
.qr-code-container p,
.qr-code-container strong {
  color: #000000 !important;
}

.pix-code {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 1rem 0;
  color: #000000 !important;
}

/* Added analytics panel styles */
.analytics-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.analytics-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.analytics-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1rem;
}

.analytics-btn:hover {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.1);
  transform: translateY(-2px);
}

.analytics-btn.active {
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.summary-card {
  background: rgba(245, 197, 24, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.summary-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile analytics adjustments */
@media (max-width: 768px) {
  .analytics-container {
    padding: 1.5rem;
  }

  .analytics-controls {
    flex-direction: column;
  }

  .analytics-btn {
    width: 100%;
  }

  .chart-wrapper {
    height: 300px;
    padding: 1rem;
  }

  .analytics-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .summary-card {
    padding: 1.25rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .chart-wrapper {
    height: 250px;
    padding: 0.75rem;
  }

  .summary-value {
    font-size: 1.25rem;
  }
}

/* Added chat widget styles */

/* Customer Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.chat-toggle svg {
  color: var(--background);
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-box-header {
  background: var(--primary);
  color: var(--background);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-box-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: var(--background);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.chat-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.chat-box-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--background);
}

.chat-loading,
.chat-error {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
}

.chat-error {
  color: #ef4444;
}

.chat-welcome {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
}

.chat-box-input {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: var(--card-bg);
}

.chat-box-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text);
  font-size: 0.875rem;
}

.chat-box-input button {
  background: var(--primary);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 45px;
}

.chat-box-input button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.chat-box-input button svg {
  color: var(--background);
}

/* Admin Chat Styles */
.chat-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 200px);
  margin-top: 1rem;
}

.chat-list {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.chat-list h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: var(--text);
}

.chat-item {
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
  position: relative;
}

.chat-item:hover {
  background: rgba(245, 197, 24, 0.1);
  border-color: var(--primary);
}

.chat-item.unread {
  background: rgba(245, 197, 24, 0.05);
  border-color: var(--primary);
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chat-item-header strong {
  color: var(--text);
  font-size: 0.9375rem;
}

.unread-badge {
  background: var(--primary);
  color: var(--background);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0 6px;
}

.chat-item-preview {
  color: var(--text-secondary);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
  padding-right: 30px;
}

.chat-item-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Delete button styles */
.delete-chat-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.375rem;
  padding: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.chat-item:hover .delete-chat-btn {
  opacity: 1;
}

.delete-chat-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.delete-chat-btn svg {
  color: #ef4444;
}

.no-chats {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
}

.chat-window {
  background: var(--card-bg);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.no-chat-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

#chatContent {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background: var(--primary);
  color: var(--background);
  padding: 1rem 1.5rem;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--background);
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-sent {
  align-self: flex-end;
}

.message-received {
  align-self: flex-start;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  word-wrap: break-word;
  line-height: 1.5;
}

.message-sent .message-content {
  background: var(--primary);
  color: var(--background);
  border-bottom-right-radius: 0.25rem;
}

.message-received .message-content {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-bottom-left-radius: 0.25rem;
}

.message-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.message-sent .message-info {
  justify-content: flex-end;
}

.message-time {
  font-size: 0.75rem;
}

.message-status {
  font-size: 0.875rem;
}

.chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  background: var(--card-bg);
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text);
  font-size: 0.9375rem;
}

.chat-input button {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
  .chat-box {
    width: calc(100vw - 40px);
    height: calc(100vh - 140px);
    max-height: 600px;
    bottom: 90px;
    right: 20px;
  }

  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
  }

  .chat-list {
    max-height: 300px;
    order: 2;
  }

  .chat-window {
    min-height: 500px;
    order: 1;
  }

  .message {
    max-width: 85%;
  }

  .chat-item-preview {
    padding-right: 35px;
  }
}

@media (max-width: 480px) {
  .chat-toggle {
    width: 50px;
    height: 50px;
  }

  .chat-box {
    bottom: 80px;
    width: calc(100vw - 20px);
    right: 10px;
  }

  .chat-box-header,
  .chat-header {
    padding: 0.875rem;
  }

  .chat-box-messages,
  .chat-messages {
    padding: 0.875rem;
  }

  .chat-box-input,
  .chat-input {
    padding: 0.875rem;
  }

  .message {
    max-width: 90%;
  }

  .chat-container {
    gap: 0.75rem;
  }
}
