
.banners-page {
  padding: 20px;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.banner-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.banner-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-status.ativo {
  background: #e8f5e8;
}

.banner-status.inativo {
  background: #ffe8e8;
}

.banner-info {
  padding: 15px;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.banner-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-categorias {
  background: #e3f2fd;
  color: #1976d2;
}
.badge-destaques {
  background: #fff3e0;
  color: #f57c00;
}
.badge-promocoes {
  background: #e8f5e8;
  color: #388e3c;
}
.badge-populares {
  background: #fce4ec;
  color: #c2185b;
}
.badge-kits {
  background: #f3e5f5;
  color: #7b1fa2;
}

.banner-date {
  font-size: 12px;
  color: #999;
}

.banner-actions {
  padding: 0 15px 15px 15px;
  display: flex;
  gap: 8px;
}

.banner-actions .btn {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 12px;
}

.banner-actions .btn:hover {
  opacity: 0.8;
}

.banner-actions .btn-primary {
  background: #2196f3;
  color: white;
}

.banner-actions .btn-warning {
  background: #ff9800;
  color: white;
}

.banner-actions .btn-danger {
  background: #f44336;
  color: white;
}

.banner-actions .btn-success {
  background: #4caf50;
  color: white;
}


.image-upload-section {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.upload-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  border-bottom-color: #2196f3;
  color: #2196f3;
  font-weight: 500;
}

.upload-tab-content {
  margin-top: 15px;
}

.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-area:hover {
  border-color: #2196f3;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}


.filters-section {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}


.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #666;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
  margin-bottom: 20px;
}


.banner-preview-container {
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}


@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .data-table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 600px;
  }

  .data-table .actions {
    flex-direction: column;
    gap: 4px;
  }
}


.stats-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.stat-mini {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-mini-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 4px;
}

.stat-mini-label {
  font-size: 14px;
  color: #6c757d;
}


.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-ativo {
  background-color: #d4edda;
  color: #155724;
}

.status-inativo {
  background-color: #f8d7da;
  color: #721c24;
}

.status-pendente {
  background-color: #fff3cd;
  color: #856404;
}

.status-processando {
  background-color: #cce7ff;
  color: #004085;
}

.status-entregue {
  background-color: #d4edda;
  color: #155724;
}

.status-cancelado {
  background-color: #f8d7da;
  color: #721c24;
}


.reports-grid {
  display: grid;
  gap: 24px;
}

.report-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.overview-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
}

.overview-content {
  flex: 1;
}

.overview-title {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 4px;
}

.overview-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.overview-change {
  font-size: 12px;
  font-weight: 500;
}

.overview-change.positive {
  color: #28a745;
}

.overview-change.negative {
  color: #dc3545;
}

.report-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.report-welcome {
  text-align: center;
  padding: 60px 40px;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.available-reports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.report-card {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.report-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.report-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.report-card-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.report-card-desc {
  font-size: 14px;
  color: #6c757d;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #eee;
}

.report-table {
  padding: 24px;
}

.report-chart {
  padding: 24px;
  border-top: 1px solid #eee;
}

.chart-placeholder {
  background: #f8f9fa;
  padding: 60px;
  text-align: center;
  color: #6c757d;
  border-radius: 4px;
  margin-top: 16px;
}

.ranking-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

.ranking-1 {
  background: #ffd700;
  color: #856404;
}

.ranking-2 {
  background: #c0c0c0;
  color: #495057;
}

.ranking-3 {
  background: #cd7f32;
  color: #fff;
}

.report-insights {
  padding: 24px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.insight-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.insight-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
  flex-shrink: 0;
}

.insight-content h5 {
  margin: 0 0 8px 0;
  color: #333;
}

.insight-content p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
}


.observacoes-preview {
  cursor: help;
}

.pedido-details {
  padding: 20px 0;
}

.detail-row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.pedido-timeline {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-left: 2px solid #d4af37;
  padding-left: 16px;
  margin-left: 8px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #d4af37;
  border-radius: 50%;
}

.timeline-date {
  font-size: 12px;
  color: #6c757d;
  min-width: 120px;
}

.timeline-content {
  color: #333;
}


.dark-theme .stats-mini .stat-mini {
  background: #2d3748;
  color: #e2e8f0;
}

.dark-theme .stat-mini-number {
  color: #f4d03f;
}

.dark-theme .overview-card {
  background: #2d3748;
  color: #e2e8f0;
}

.dark-theme .overview-icon {
  background: #4a5568;
}

.dark-theme .report-content {
  background: #2d3748;
}

.dark-theme .report-card {
  background: #4a5568;
  color: #e2e8f0;
}

.dark-theme .report-card:hover {
  background: #2d3748;
}

.dark-theme .chart-placeholder {
  background: #4a5568;
  color: #a0aec0;
}

.dark-theme .insight-card {
  background: #4a5568;
}

.dark-theme .insight-icon {
  background: #2d3748;
}

.dark-theme .detail-row {
  border-bottom-color: #4a5568;
}

.dark-theme .pedido-timeline {
  border-top-color: #4a5568;
}

.dark-theme .timeline-item {
  border-left-color: #f4d03f;
}

.dark-theme .timeline-item::before {
  background: #f4d03f;
}


.positive {
  color: #28a745;
}

.negative {
  color: #dc3545;
}

.neutral {
  color: #6c757d;
}


textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.dark-theme textarea {
  background-color: #4a5568;
  border-color: #6b7280;
  color: white;
}


.report-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.report-filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 150px;
}

.dark-theme .report-filters select {
  background: #4a5568;
  border-color: #6b7280;
  color: white;
}


.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;
}

.loading-spinner {
  background: white;
  padding: 20px 40px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .loading-spinner {
  background: #2d3748;
  color: #e2e8f0;
}


.form-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

.dark-theme .form-help {
  color: #a0aec0;
}


.produto-info strong {
  color: #333;
}

.dark-theme .produto-info strong {
  color: #e2e8f0;
}

.text-muted {
  color: #6c757d;
}

.dark-theme .text-muted {
  color: #a0aec0;
}


.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #dc3545;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}


.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

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

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

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.dark-theme .alert-success {
  background: #1b3a2b;
  color: #b8e6c1;
  border-color: #2d5a3d;
}

.dark-theme .alert-error {
  background: #3a1b1b;
  color: #e6b8b8;
  border-color: #5a2d2d;
}

.dark-theme .alert-warning {
  background: #3a351b;
  color: #e6ddb8;
  border-color: #5a4f2d;
}


.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  border-left: 4px solid #d4af37;
}

.notification-success {
  border-left-color: #28a745;
}

.notification-error {
  border-left-color: #dc3545;
}

.notification-warning {
  border-left-color: #ffc107;
}

.notification-info {
  border-left-color: #17a2b8;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background: #f5f5f5;
  color: #333;
}


.dark-theme .notification {
  background: #2d3748;
  color: #e2e8f0;
}

.dark-theme .notification-message {
  color: #e2e8f0;
}

.dark-theme .notification-close {
  color: #a0aec0;
}

.dark-theme .notification-close:hover {
  background: #4a5568;
  color: #e2e8f0;
}


.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

.dark-theme .field-error {
  color: #fc8181;
}


.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}


.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.data-table tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.dark-theme .data-table tbody tr:hover {
  background-color: rgba(244, 208, 63, 0.1);
}


.status-badge {
  transition: all 0.2s ease;
}

.status-ativo {
  background-color: #d4edda;
  color: #155724;
  animation: pulse-green 2s infinite;
}

.status-inativo {
  background-color: #f8d7da;
  color: #721c24;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}


.actions .btn {
  transition: all 0.2s ease;
}

.actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.form-group {
  position: relative;
}

.form-group label {
  transition: color 0.2s ease;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
  color: #d4af37;
}


.stat-mini {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.dark-theme .stat-mini:hover {
  box-shadow: 0 8px 25px rgba(244, 208, 63, 0.1);
}


@media (max-width: 768px) {
  .notifications-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .notification-content {
    padding: 12px;
  }

  .notification-message {
    font-size: 13px;
  }
}


.table-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.table-loading::after {
  content: "Carregando...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-theme .table-loading::after {
  background: rgba(45, 55, 72, 0.9);
  color: #e2e8f0;
}


[title] {
  position: relative;
  cursor: help;
}


.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: #28a745;
}

.form-group input:valid:focus,
.form-group select:valid:focus,
.form-group textarea:valid:focus {
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
} 


.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.show-modal {
  display: flex !important;
  position: fixed !important;
  z-index: 10000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  justify-content: center !important;
  align-items: center !important;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #eee;
}


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

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
#btn-banner {
  display: inline !important;
  align-items: center;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background-color: #b8860b;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #117a8b;
}

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

.btn-danger:hover {
  background-color: #c82333;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}


.data-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table .actions {
  display: flex;
  gap: 8px;
}


.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filters {
  display: flex;
  gap: 12px;
}

.filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}


.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.placeholder-content h2 {
  margin: 0 0 16px 0;
  color: #495057;
}

.placeholder-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.placeholder-features {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

.placeholder-features h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #495057;
}

.placeholder-features ul {
  list-style: none;
  padding: 0;
}

.placeholder-features li {
  padding: 8px 0;
  position: relative;
  padding-left: 24px;
}

.placeholder-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}


.dark-theme .modal-content {
  background-color: #2d3748;
  color: white;
}

.dark-theme .modal-header {
  border-bottom-color: #4a5568;
}

.dark-theme .modal-footer {
  border-top-color: #4a5568;
}


.pedido-details {
  padding: 10px 0;
}

.detail-row {
  margin-bottom: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  display: inline-block;
  min-width: 120px;
  color: #333;
}

.pedido-itens {
  margin-top: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 10px;
}

.pedido-itens .item {
  padding: 5px 0;
  border-bottom: 1px solid #dee2e6;
}

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

.observacoes-preview {
  cursor: pointer;
}

.observacoes-preview:hover {
  text-decoration: underline;
}

.dark-theme .form-group input,
.dark-theme .form-group select {
  background-color: #4a5568;
  border-color: #6b73ff;
  color: white;
}

.dark-theme .data-table-container {
  background: #2d3748;
}

.dark-theme .data-table th {
  background-color: #4a5568;
  color: #e2e8f0;
}

.dark-theme .data-table td {
  color: #e2e8f0;
  border-bottom-color: #4a5568;
}

.dark-theme .data-table tbody tr:hover {
  background-color: #4a5568;
}

.dark-theme .placeholder-features {
  background-color: #4a5568;
}


.banners-page {
  padding: 20px;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.banner-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.banner-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.banner-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-status.ativo {
  background: #e8f5e8;
}

.banner-status.inativo {
  background: #ffe8e8;
}

.banner-info {
  padding: 15px;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.banner-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.banner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-categorias {
  background: #e3f2fd;
  color: #1976d2;
}
.badge-destaques {
  background: #fff3e0;
  color: #f57c00;
}
.badge-promocoes {
  background: #e8f5e8;
  color: #388e3c;
}
.badge-populares {
  background: #fce4ec;
  color: #c2185b;
}
.badge-kits {
  background: #f3e5f5;
  color: #7b1fa2;
}

.banner-date {
  font-size: 12px;
  color: #999;
}

.banner-actions {
  padding: 0 15px 15px 15px;
  display: flex;
  gap: 8px;
}

.banner-actions .btn {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 12px;
}

.banner-actions .btn:hover {
  opacity: 0.8;
}

.banner-actions .btn-primary {
  background: #2196f3;
  color: white;
}

.banner-actions .btn-warning {
  background: #ff9800;
  color: white;
}

.banner-actions .btn-danger {
  background: #f44336;
  color: white;
}

.banner-actions .btn-success {
  background: #4caf50;
  color: white;
}


.image-upload-section {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.upload-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  border-bottom-color: #2196f3;
  color: #2196f3;
  font-weight: 500;
}

.upload-tab-content {
  margin-top: 15px;
}

.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-area:hover {
  border-color: #2196f3;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}


.filters-section {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}


.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #666;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
  margin-bottom: 20px;
}


.banner-preview-container {
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
}


@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .data-table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 600px;
  }

  .data-table .actions {
    flex-direction: column;
    gap: 4px;
  }
}


.simple-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.simple-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.simple-modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1051;
}

.simple-modal-header {
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simple-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.simple-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #999;
  transition: all 0.2s;
}

.simple-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.simple-modal-body {
  padding: 20px;
}

.simple-modal-footer {
  padding: 15px 20px 20px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


.file-upload-area.drag-active {
  border-color: #4caf50;
  background-color: #f0fff0;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.file-upload-area.drag-over {
  border-color: #4caf50;
  background-color: #e8f5e8;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.file-upload-area.drag-active .upload-icon {
  font-size: 52px;
  color: #4caf50;
}

.file-upload-area.drag-active p {
  color: #4caf50;
  font-weight: 600;
}


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

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid #007bff;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-icon {
  font-size: 32px;
  opacity: 0.8;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.chart-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}

.chart-content {
  min-height: 200px;
}

.loading-message, .empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: #666;
  font-style: italic;
}

.empty-message {
  color: #28a745;
}

.produtos-list, .clientes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.produto-item, .cliente-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.produto-item:hover, .cliente-item:hover {
  background: #e9ecef;
}

.produto-rank {
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
  margin-right: 12px;
  min-width: 30px;
}

.produto-info, .cliente-info {
  flex: 1;
}

.produto-nome, .cliente-nome {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.produto-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
}

.cliente-email {
  color: #666;
  font-size: 14px;
  margin-bottom: 2px;
}

.cliente-ultimo-pedido {
  color: #999;
  font-size: 12px;
}

.quantidade {
  color: #28a745;
  font-weight: 500;
}

.valor {
  color: #dc3545;
  font-weight: 600;
}

/* Professional Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-dialog {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.modal-dialog * {
  pointer-events: auto;
}

.modal-dialog .btn {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.modal-dialog input,
.modal-dialog select,
.modal-dialog textarea,
.modal-dialog button {
  pointer-events: auto !important;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.form-value {
  font-weight: 600;
  color: #34495e;
  font-size: 16px;
  margin: 8px 0;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-control:hover {
  border-color: #c0c0c0;
}

.alert-info {
  background-color: #e8f4f8;
  border-left: 4px solid #17a2b8;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: #0c5460;
}

.alert-info strong {
  font-weight: 600;
  color: #0c5460;
}

/* Dark Theme for Modals */
.dark-theme .modal-dialog {
  background: #2d3748;
}

.dark-theme .modal-title {
  color: #e2e8f0;
}

.dark-theme .form-value {
  color: #cbd5e0;
}

.dark-theme .form-control {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

.dark-theme .form-control:focus {
  border-color: #f4d03f;
  box-shadow: 0 0 0 4px rgba(244, 208, 63, 0.1);
}

.dark-theme .alert-info {
  background-color: #2c5282;
  border-left-color: #63b3ed;
  color: #bee3f8;
}

.dark-theme .alert-info strong {
  color: #90cdf4;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.modal-overlay[style*="display: flex"] {
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay[style*="display: flex"] .modal-dialog {
  animation: modalSlideIn 0.3s ease;
}

/* Professional Button Styles */
.btn-success {
  background-color: #28a745;
  color: white;
  font-weight: 500;
}

.btn-success:hover {
  background-color: #218838;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-warning {
  background-color: #ffc107;
  color: #212529;
  font-weight: 500;
}

.btn-warning:hover {
  background-color: #e0a800;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}


/* Estilos para Modal de Novo Pedido */
.modal-lg {
  max-width: 900px !important;
  width: 95% !important;
}

.form-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #d4af37;
}

.form-section h4 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Estilos para Itens do Pedido */
.pedido-itens-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.pedido-item {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.pedido-item:hover {
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.pedido-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.flex-2 {
  grid-column: span 1;
}

.item-subtotal {
  font-size: 18px;
  font-weight: 600;
  color: #28a745;
  padding: 8px 12px;
  background: #e8f5e8;
  border-radius: 6px;
  text-align: center;
}

/* Estilos para Foto do Produto */
.pedido-item-foto {
  margin-top: 12px;
  text-align: center;
}

.produto-foto-preview {
  max-width: 200px;
  max-height: 150px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  border: 3px solid #e0e0e0;
  transition: all 0.3s ease;
}

.produto-foto-preview:hover {
  transform: scale(1.05);
  border-color: #d4af37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.no-foto {
  color: #999;
  font-style: italic;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
}

/* Valor Total */
.valor-total {
  font-size: 28px;
  font-weight: 700;
  color: #d4af37;
  text-align: right;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Dark Theme Overrides */
.dark-theme .form-section {
  background: #3a4556;
  border-left-color: #f4d03f;
}

.dark-theme .form-section h4 {
  color: #e2e8f0;
}

.dark-theme .pedido-item {
  background: #2d3748;
  border-color: #4a5568;
}

.dark-theme .pedido-item:hover {
  border-color: #f4d03f;
}

.dark-theme .item-subtotal {
  background: #2f5233;
  color: #81c784;
}

.dark-theme .produto-foto-preview {
  border-color: #4a5568;
}

.dark-theme .produto-foto-preview:hover {
  border-color: #f4d03f;
}

.dark-theme .no-foto {
  background: #4a5568;
  color: #a0aec0;
}

.dark-theme .valor-total {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: #f4d03f;
  border-color: #f4d03f;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-lg {
    width: 98% !important;
    max-width: none !important;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .pedido-item-row {
    grid-template-columns: 1fr;
  }
  
  .pedido-item-row .form-group {
    width: 100%;
  }
  
  .produto-foto-preview {
    max-width: 100%;
  }
}

