/* ===== VARIÁVEIS E RESET ===== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== LAYOUT RESPONSIVO ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ===== MENU LATERAL RESPONSIVO ===== */
.sidebar {
  width: 280px;
  background: var(--primary-color);
  color: white;
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
}

/* ===== LOGO RESPONSIVA ===== */
.sidebar .logo {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: var(--transition);
  display: block;
  object-fit: contain;
}

.logo-placeholder {
  background: #34495e;
  padding: 15px;
  text-align: center;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.user-info {
  padding: 10px;
  background: #34495e;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 0.9rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 12px 15px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar li:hover {
  background: #34495e;
}

.sidebar .logout {
  color: #e74c3c;
  margin-top: 20px;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
  margin-left: 280px;
  padding: 30px;
  width: calc(100% - 280px);
  transition: var(--transition);
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CARDS E FORMULÁRIOS ===== */
.card {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card h2,
.card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== GRIDS RESPONSIVOS ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ===== FORMULÁRIOS ===== */
.form-group {
  margin-bottom: 20px;
}

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

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  background-color: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== BOTÕES PRINCIPAIS ===== */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), #2980b9);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, var(--secondary-color));
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #2ecc71);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #229954, var(--success-color));
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-color), #c0392b);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e74c3c, #a93226);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #f1c40f);
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e67e22, var(--warning-color));
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-cancel:hover {
  background: #5a6268;
}

/* ===== BOTÕES ESPECIAIS ESTILIZADOS ===== */
.btn-material {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-material::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-material:hover::before {
  left: 100%;
}

.btn-material:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-edit {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
  text-decoration: none;
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #e0a800, #ffc107);
  color: #212529;
  text-decoration: none;
}

.btn-delete {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.btn-calculate {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-calculate::after {
  content: "💰";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-calculate:hover::after {
  right: 20px;
  opacity: 1;
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(39, 174, 96, 0.6);
  background: linear-gradient(135deg, #229954, #27ae60);
  padding-right: 50px;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893c0-3.189-1.248-6.189-3.515-8.444'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 20px;
  opacity: 0.1;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.btn-save-order {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-save-order::before {
  content: "📦";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-save-order:hover::before {
  right: 20px;
  opacity: 1;
}

.btn-save-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(155, 89, 182, 0.6);
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  padding-right: 50px;
}

.btn-save-config {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-save-config::before {
  content: "⚙️";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-save-config:hover::before {
  left: 20px;
  opacity: 1;
}

.btn-save-config:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 62, 80, 0.6);
  background: linear-gradient(135deg, #34495e, #2c3e50);
  padding-left: 50px;
}

.btn-upload-logo {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-upload-logo::after {
  content: "🖼️";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-upload-logo:hover::after {
  right: 20px;
  opacity: 1;
}

.btn-upload-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
  background: linear-gradient(135deg, #d35400, #e67e22);
  padding-right: 50px;
}

/* ===== LISTAS E TABELAS ===== */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.data-item:hover {
  background: #e9ecef;
}

.item-info {
  flex: 1;
}

.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.table th {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

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

/* ===== STATUS E BADGES ===== */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.status-pendente {
  background: #fff3cd;
  color: #856404;
}
.status-pago {
  background: #d4edda;
  color: #155724;
}
.status-parcial {
  background: #d1ecf1;
  color: #0c5460;
}
.status-ativo {
  border-left: 4px solid #007bff;
}
.status-concluido {
  border-left: 4px solid #28a745;
}
.status-cancelado {
  border-left: 4px solid #dc3545;
}

.badge-origem {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-whatsapp {
  background: #25d366;
  color: white;
}
.badge-manual {
  background: #6c757d;
  color: white;
}

/* ===== MENSAGENS DE ALERTA ===== */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

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

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== ESTADOS VAZIOS ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #bdc3c7;
}

/* ===== COMPONENTES ESPECÍFICOS ===== */
.stats-bar {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

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

.dashboard-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.dashboard-card h4 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.dashboard-card .numero {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: var(--transition);
}

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

.product-card img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ===== FILTROS ===== */
.filtros-clientes {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filtros-clientes select,
.filtros-clientes input {
  flex: 1;
  min-width: 200px;
}

/* ===== WHATSAPP ===== */
.whatsapp-notification {
  background: #dcf8c6;
  border: 2px solid #25d366;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

/* ===== MENU MOBILE ===== */
.mobile-header {
  display: none;
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  align-items: center;
  height: 60px;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.mobile-logo-img {
  height: 45px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.mobile-logo-text {
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* ===== ESTILOS ADICIONAIS PARA COMPONENTES ESPECÍFICOS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Estilos para as páginas específicas */
.clientes-container {
  width: 100%;
}

.pedido-item {
  border-left: 4px solid #007bff;
}

.pedido-item.status-concluido {
  border-left-color: #28a745;
}

.pedido-item.status-cancelado {
  border-left-color: #dc3545;
}

/* Ajustes para os formulários de edição nos modais */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Ajustes para os cards de dashboard */
.dashboard-card small {
  color: #6c757d;
  font-size: 0.875rem;
}

/* ===== MODAL DE LOGIN ===== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.login-modal-container {
  background: white;
  padding: 5px 10px;
  border-radius: 15px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.login-modal-logo {
  margin-bottom: 15px;
}

.login-logo-img {
  max-width: 160px;
  max-height: 100px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.login-modal-title {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
}

.login-modal-subtitle {
  color: #7f8c8d;
  margin-bottom: 25px;
  font-size: 14px;
}

.login-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.login-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

.login-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login-modal {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  margin-bottom: 5px;
}

.btn-login-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-modal-error {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  border-left: 4px solid #c33;
  font-size: 14px;
}

.login-modal-demo {
  background: #fff3cd;
  color: #856404;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #ffc107;
  font-size: 13px;
}

.login-links {
  margin-top: 15px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.login-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.login-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 5px;
}

.login-links a:hover {
  color: #764ba2;
  text-decoration: underline;
  background-color: #f8f9fa;
}

.login-links-separator {
  color: #ccc;
  font-size: 12px;
}

/* ===== MODAL DE CADASTRO ===== */
.cadastro-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.cadastro-modal-container {
  background: white;
  padding: 35px 30px 25px 30px;
  border-radius: 15px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
}

.cadastro-modal-title {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
  font-weight: 600;
}

.termos-privacidade {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  font-size: 13px;
}

.termos-privacidade h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 14px;
}

.termos-privacidade p {
  margin-bottom: 8px;
  line-height: 1.4;
}

.termos-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
}

.termos-checkbox input[type="checkbox"] {
  margin-top: 3px;
}

.termos-checkbox label {
  font-size: 13px;
  line-height: 1.4;
}

/* Quando não autenticado, desfocar o sistema */
body:not(.usuario-autenticado) .app-container {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

/* ===== BOTÕES EM GRUPO ===== */
.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button-group-center {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ===== EFEITOS ESPECIAIS ===== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

.btn-pulse {
  animation: pulse-glow 2s infinite;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }
  .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px;
    padding-top: 75px;
  }

  .sidebar .logo {
    max-width: 80%;
    max-height: 80px;
    margin: 0 auto 15px;
    display: block;
  }

  .logo-placeholder {
    padding: 10px;
    font-size: 0.8rem;
    margin: 0 auto 15px;
    max-width: 80%;
  }

  .form-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .data-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .table-container {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 10px;
  }

  .mobile-logo-img {
    height: 35px;
  }

  .mobile-logo-text {
    font-size: 15px;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-material,
  .btn-calculate,
  .btn-save-order,
  .btn-save-config,
  .btn-upload-logo {
    width: 100%;
    justify-content: center;
  }

  .btn-edit,
  .btn-delete {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
    padding-top: 65px;
  }

  .card {
    padding: 15px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .filtros-clientes {
    flex-direction: column;
  }

  .filtros-clientes select,
  .filtros-clientes input {
    min-width: auto;
  }

  .sidebar .logo {
    max-width: 70%;
    max-height: 70px;
    margin-bottom: 10px;
  }

  .logo-placeholder {
    padding: 8px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    max-width: 70%;
  }

  .mobile-header {
    padding: 10px 15px;
    height: 55px;
  }

  .mobile-logo-img {
    height: 30px;
  }

  .mobile-logo-text {
    font-size: 14px;
  }

  .menu-toggle {
    font-size: 18px;
    margin-right: 12px;
    width: 25px;
    height: 25px;
  }

  .login-modal-container {
    padding: 25px 20px 20px 20px;
    margin: 15px;
  }

  .cadastro-modal-container {
    padding: 25px 20px 20px 20px;
    margin: 15px;
  }

  .login-modal-title,
  .cadastro-modal-title {
    font-size: 22px;
  }

  .login-logo-img {
    max-width: 140px;
    max-height: 80px;
  }

  .login-links {
    margin-top: 12px;
    padding-top: 12px;
  }

  .login-links-row {
    gap: 6px;
  }

  .login-links a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .login-modal-subtitle {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .login-form-group {
    margin-bottom: 15px;
  }

  .login-form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn-login-modal {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .mobile-logo-img {
    height: 25px;
  }

  .mobile-logo-text {
    font-size: 13px;
  }

  .mobile-header {
    padding: 8px 12px;
    height: 50px;
  }

  .sidebar .logo {
    max-width: 65%;
    max-height: 65px;
  }

  .logo-placeholder {
    max-width: 65%;
    padding: 6px;
    font-size: 0.7rem;
  }

  .login-links a {
    font-size: 11px;
    padding: 4px 6px;
  }

  .login-logo-img {
    max-width: 120px;
    max-height: 70px;
  }

  .login-modal-container {
    padding: 20px 15px 15px 15px;
  }

  .login-links-row {
    flex-direction: column;
    gap: 5px;
  }

  .login-links-separator {
    display: none;
  }
}
/* ===== PÁGINA DE CLIENTES ===== */
.clientes-container {
  width: 100%;
}

.cliente-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cliente-details {
  font-size: 0.9em;
  color: #666;
}

.cliente-details div {
  margin: 3px 0;
}

.whatsapp-link {
  background: #25d366;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  font-weight: 600;
}

.whatsapp-link:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-item {
  border-left: 4px solid #25d366;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fff4 100%);
}

.manual-item {
  border-left: 4px solid #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
}

/* Estatísticas específicas para clientes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Filtros específicos */
.filtros-clientes {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filtros-clientes select,
.filtros-clientes input {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.filtros-clientes select:focus,
.filtros-clientes input:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Badges de origem */
.badge-origem {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-whatsapp {
  background: #25d366;
  color: white;
}

.badge-manual {
  background: #6c757d;
  color: white;
}

/* Estados vazios específicos */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #bdc3c7;
}

/* Stats bar específica */
.stats-bar {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid var(--secondary-color);
}

/* Botões específicos para clientes */
.btn-save-cliente {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-save-cliente:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Ações dos itens */
.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Responsividade específica para clientes */
@media (max-width: 768px) {
  .cliente-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtros-clientes {
    flex-direction: column;
  }

  .filtros-clientes select,
  .filtros-clientes input {
    min-width: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .cliente-details {
    font-size: 0.8em;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .whatsapp-link {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* Animações específicas para clientes */
@keyframes slideInClient {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.data-item {
  animation: slideInClient 0.4s ease-out;
}

/* Efeitos de hover melhorados */
.data-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Destaque para novos clientes */
.cliente-novo::after {
  content: "NOVO";
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Layout do formulário de clientes */
.client-form-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.client-form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Estados de loading */
.loading-clients {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ===== PÁGINA DE CONFIGURAÇÕES ===== */
.config-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.config-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.config-status {
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-weight: 600;
}

.config-status-completa {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-left: 4px solid #28a745;
}

.config-status-incompleta {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-left: 4px solid #dc3545;
}

/* Layout específico para configurações */
.config-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.config-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 15px;
}

/* Grupos de formulário específicos */
.config-form-group {
  margin-bottom: 20px;
}

.config-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.config-form-group input,
.config-form-group select,
.config-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.config-form-group input:focus,
.config-form-group select:focus,
.config-form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  background-color: white;
}

/* Layout de colunas para configurações */
.config-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.config-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Preview do logo */
.logo-preview {
  margin-top: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  text-align: center;
}

.logo-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.logo-preview img:hover {
  transform: scale(1.05);
}

/* Informações da conta */
.account-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.account-info h4 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.info-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

/* Status da loja */
.store-status {
  padding: 15px;
  border-radius: var(--border-radius);
  margin: 15px 0;
  font-weight: 600;
}

.store-status-active {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.store-status-inactive {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Links sociais */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social-link {
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-instagram {
  background: linear-gradient(45deg, #e4405f, #c13584);
  color: white;
}

.social-facebook {
  background: #1877f2;
  color: white;
}

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

/* Botões específicos para configurações */
.config-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.btn-save-config {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-save-config::before {
  content: "⚙️";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-save-config:hover::before {
  left: 20px;
  opacity: 1;
}

.btn-save-config:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 62, 80, 0.6);
  background: linear-gradient(135deg, #34495e, #2c3e50);
  padding-left: 50px;
}

.btn-upload-logo {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-upload-logo::after {
  content: "🖼️";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-upload-logo:hover::after {
  right: 20px;
  opacity: 1;
}

.btn-upload-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
  background: linear-gradient(135deg, #d35400, #e67e22);
  padding-right: 50px;
}

/* Estados dos campos */
.required-field::after {
  content: " *";
  color: #e74c3c;
}

.field-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.field-valid {
  color: #28a745;
}

.field-invalid {
  color: #dc3545;
}

/* Responsividade para configurações */
@media (max-width: 768px) {
  .config-form-grid {
    grid-template-columns: 1fr;
  }

  .config-columns {
    grid-template-columns: 1fr;
  }

  .config-buttons {
    flex-direction: column;
  }

  .btn-save-config,
  .btn-upload-logo {
    width: 100%;
    justify-content: center;
  }

  .social-links {
    flex-direction: column;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .config-section {
    padding: 15px;
  }

  .logo-preview img {
    max-width: 150px;
  }

  .account-info {
    padding: 15px;
  }
}

/* Animações específicas para configurações */
@keyframes configSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-section {
  animation: configSlideIn 0.5s ease-out;
}

/* Efeitos de foco melhorados */
.config-form-group input:valid {
  border-color: #28a745;
}

.config-form-group input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3545;
}

/* Tooltips para configurações */
.config-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  color: #6c757d;
  cursor: help;
}

.config-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.config-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* ===== PÁGINA DE PEDIDOS ===== */

/* ===== LAYOUT DOS PEDIDOS ===== */
.pedidos-container {
  width: 100%;
}

.pedido-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pedido-details {
  font-size: 0.9em;
  color: #666;
}

.pedido-details div {
  margin: 3px 0;
}

.entrada-paga {
  color: #28a745;
  font-weight: bold;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== STATUS DOS PEDIDOS ===== */
.pedido-item.status-ativo {
  border-left: 4px solid #007bff;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
}

.pedido-item.status-concluido {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.pedido-item.status-cancelado {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

/* ===== BOTÕES ESPECÍFICOS PARA PEDIDOS ===== */
.btn-save-order {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-save-order::before {
  content: "📦";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.btn-save-order:hover::before {
  right: 20px;
  opacity: 1;
}

.btn-save-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(155, 89, 182, 0.6);
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  padding-right: 50px;
}

.btn-complete {
  background: linear-gradient(135deg, #28a745, #229954);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btn-complete:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #229954, #28a745);
}

/* ===== MODAL DE EDIÇÃO DE PEDIDOS ===== */
.pedido-modal .modal-content {
  max-width: 600px;
}

.close-modal {
  float: right;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 5px;
}

.close-modal:hover {
  color: #e74c3c;
  background: #f8f9fa;
  border-radius: 50%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  cursor: pointer;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.checkbox-label:hover {
  background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #28a745;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

/* ===== ESTILOS PARA FORMULÁRIOS DE PEDIDOS ===== */
.pedido-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pedido-form-group {
  margin-bottom: 15px;
}

.pedido-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.pedido-form-group input,
.pedido-form-group select,
.pedido-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.pedido-form-group input:focus,
.pedido-form-group select:focus,
.pedido-form-group textarea:focus {
  border-color: #9b59b6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
  background-color: white;
}

/* ===== TIMELINE DE PEDIDOS ===== */
.pedido-timeline {
  position: relative;
  padding-left: 30px;
  margin: 15px 0;
}

.pedido-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #9b59b6;
}

.pedido-milestone {
  position: relative;
  margin-bottom: 20px;
}

.pedido-milestone::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9b59b6;
}

.pedido-milestone.completed::before {
  background: #28a745;
}

.pedido-milestone.current::before {
  background: #ffc107;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== BADGES DE STATUS DE PEDIDOS ===== */
.status-badge-pedido {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

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

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

.status-parcial {
  background: #d1ecf1;
  color: #0c5460;
}

.status-urgente {
  background: #f8d7da;
  color: #721c24;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ===== ESTADOS VAZIOS ESPECÍFICOS ===== */
.empty-pedidos {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.empty-pedidos .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #bdc3c7;
}

.empty-pedidos h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

/* ===== FILTROS DE PEDIDOS ===== */
.filtros-pedidos {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.filtros-pedidos select,
.filtros-pedidos input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: white;
}

/* ===== CARDS DE RESUMO DE PEDIDOS ===== */
.pedidos-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.resumo-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #9b59b6;
}

.resumo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.resumo-card.pendentes {
  border-top-color: #ffc107;
}

.resumo-card.concluidos {
  border-top-color: #28a745;
}

.resumo-card.cancelados {
  border-top-color: #dc3545;
}

.resumo-numero {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 10px 0;
}

.resumo-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .pedido-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pedido-form-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-save-order,
  .btn-cancel {
    width: 100%;
    justify-content: center;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .filtros-pedidos {
    flex-direction: column;
  }

  .filtros-pedidos select,
  .filtros-pedidos input {
    min-width: auto;
  }

  .pedidos-resumo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn-save-order {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .pedido-details {
    font-size: 0.8em;
  }

  .modal-content {
    padding: 20px;
    margin: 10px;
  }

  .resumo-card {
    padding: 15px;
  }

  .resumo-numero {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-edit,
  .btn-complete,
  .btn-delete {
    width: 100%;
    justify-content: center;
  }

  .pedido-timeline {
    padding-left: 20px;
  }

  .pedido-milestone::before {
    left: -20px;
  }
}

/* ===== ANIMAÇÕES ESPECÍFICAS ===== */
@keyframes slideInPedido {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pedido-item {
  animation: slideInPedido 0.4s ease-out;
}

/* ===== ESTILOS PARA PRAZOS ===== */
.prazo-proximo {
  color: #e67e22;
  font-weight: bold;
}

.prazo-atrasado {
  color: #e74c3c;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.prazo-normal {
  color: #27ae60;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-grid h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

/* Data List */
.data-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.data-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-item:last-child {
  margin-bottom: 0;
}

.item-info {
  flex: 1;
}

.item-info strong {
  display: block;
  color: #f5eeee;
  margin-bottom: 4px;
  font-size: 0.95em;
}

.item-info small {
  color: #666;
  font-size: 0.85em;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
}

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

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

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

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

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.card h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.card h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.card p {
  color: #666;
  line-height: 1.5;
}

/* Empty State */
.data-list p {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  margin: 0;
  font-style: italic;
}

/* Scrollbar Styling */
.data-list::-webkit-scrollbar {
  width: 6px;
}

.data-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* Materiais Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-grid h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Stats Bar */
.stats-bar {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
}

.stats-bar .text-muted {
  color: #666 !important;
  font-size: 0.9em;
}

/* Data List */
.data-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  background: white;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.data-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.data-item:last-child {
  margin-bottom: 0;
}

.item-info {
  flex: 1;
}

.item-info strong {
  display: block;
  color: #333;
  margin-bottom: 5px;
  font-size: 1em;
}

.item-info small {
  color: #666;
  font-size: 0.85em;
  line-height: 1.4;
}

.item-info .text-muted {
  color: #999 !important;
  font-size: 0.8em;
}

/* Item Actions */
.item-actions {
  display: flex;
  gap: 8px;
  margin-left: 15px;
}

.btn-edit {
  background: #ffc107;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9em;
}

.btn-edit:hover {
  background: #e0a800;
  transform: scale(1.1);
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.btn-delete:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-state p {
  margin: 10px 0;
  line-height: 1.5;
}

.empty-state p:first-child {
  font-size: 1.1em;
  font-weight: 600;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.card h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5em;
}

/* Scrollbar Styling */
.data-list::-webkit-scrollbar {
  width: 6px;
}

.data-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .form-buttons {
    flex-direction: column;
  }

  .data-item {
    flex-direction: column;
    align-items: stretch;
  }

  .item-actions {
    margin-left: 0;
    margin-top: 10px;
    justify-content: flex-end;
  }

  .card {
    padding: 15px;
  }
}
/* Calculadora de Precificação Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-grid h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
button[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Resultado Styles */
#resultado {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#resultado h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

#resultado .preco-final {
  font-size: 2.5em;
  font-weight: bold;
  margin: 10px 0;
}

#resultado .detalhes {
  font-size: 0.9em;
  opacity: 0.9;
  line-height: 1.5;
}

/* Data List Styles */
.data-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.data-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-item:last-child {
  margin-bottom: 0;
}

.item-info {
  flex: 1;
}

.item-info strong {
  display: block;
  color: #333;
  margin-bottom: 4px;
  font-size: 0.95em;
}

.item-info small {
  color: #666;
  font-size: 0.85em;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.card h2 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.card p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Empty State */
.data-list p {
  text-align: center;
  color: #666;
  padding: 40px 20px;
  margin: 0;
  font-style: italic;
}

/* Scrollbar Styling */
.data-list::-webkit-scrollbar {
  width: 6px;
}

.data-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.data-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .card {
    padding: 15px;
  }

  .form-grid {
    gap: 15px;
  }

  #resultado .preco-final {
    font-size: 2em;
  }
}
/* Estilos específicos para delivery */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.card-info h3 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #2d3748;
}

.card-info p {
  margin: 5px 0 0 0;
  color: #718096;
  font-size: 14px;
}

.section-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
  margin: 0;
  color: #2d3748;
  font-size: 24px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.inactive {
  background: #fed7d7;
  color: #742a2a;
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .card {
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}
