:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --bg-body: #f5f7fa;
  --bg-card: #ffffff;
  --border-radius: 8px;
  --shadow: 0 2px 10px rgba(0,0,0,0.05);
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--secondary);
  line-height: 1.6;
  padding-bottom: 40px;
}

/* --- Layout & Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 2rem 0;
}

/* --- Navigation --- */
header {
  background-color: var(--secondary);
  color: white;
  padding: 1rem 0;
  margin-bottom: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

nav.navbar {
  background-color: var(--primary);
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-menu li a {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.nav-menu li a:hover, .nav-menu li.active a {
  background-color: var(--primary-dark);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
}

/* --- Tipografia --- */
h1, h2, h3 { color: var(--secondary); margin-bottom: 1rem; font-weight: 600; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; display: inline-block; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-top: 0.5rem; color: var(--primary); }

/* --- Forms --- */
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-col { flex: 1; min-width: 250px; }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
  font-size: 0.9rem;
}

input[type="text"], input[type="number"], input[type="email"], 
input[type="date"], input[type="datetime-local"], 
select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea { resize: vertical; min-height: 80px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}

.btn:hover { background-color: var(--primary-dark); transform: translateY(-1px); }
.btn-success { background-color: var(--success); }
.btn-success:hover { background-color: #27ae60; }
.btn-danger { background-color: var(--accent); }
.btn-danger:hover { background-color: #c0392b; }
.btn-warning { background-color: var(--warning); }
.btn-secondary { background-color: var(--gray); }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: var(--primary); color: white; font-weight: 500; }
tr:hover { background-color: #f9f9f9; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; gap: 10px; }
.justify-between { justify-content: space-between; }
.badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* --- Specifics: Steps (Pedido) --- */
.steps-container { display: flex; justify-content: center; margin-bottom: 2rem; }
.step { 
  padding: 10px 20px; 
  color: var(--gray); 
  font-weight: 600; 
  border-bottom: 3px solid #ddd; 
  margin: 0 5px;
}
.step.active { color: var(--primary); border-color: var(--primary); }

/* --- Specifics: Panels (Pedido) --- */
.screen { display: none; animation: fadeIn 0.3s; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Modal --- */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 999; display: none;
  justify-content: center; align-items: center;
}
.modal.open { display: flex; }
.modal-content {
  background: white; width: 90%; max-width: 600px; height: 80%;
  border-radius: var(--border-radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.modal-close {
  position: absolute; top: 10px; right: 15px; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--accent); z-index: 10;
}
.modal-body { flex: 1; width: 100%; height: 100%; }
.modal-body iframe { width: 100%; height: 100%; border: none; }