/* ============================================================
   CATA EXPRESS — Estilos módulo Docentes
   ============================================================ */

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --dark2: #2a2a2a;
  --dark3: #3a3a3a;
  --gray: #888;
  --light-gray: #ccc;
  --white: #f5f5f5;
  --accent: #c8a96e;
  --accent-dark: #a88a4e;
  --red: #e74c3c;
  --green: #27ae60;
  --orange: #f39c12;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
}
input, select, textarea, button { font-family: inherit; }
.hidden { display: none !important; }

/* ===== TOPBAR ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark); height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--dark3);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand img { height: 32px; }
.topbar-brand-name { font-size: 13px; color: var(--gray); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.topbar-name { font-size: 14px; font-weight: 600; }
.topbar-cargo { font-size: 11px; color: var(--gray); }
.btn-logout {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 18px; padding: 4px;
  transition: color 0.2s;
}
.btn-logout:hover { color: var(--red); }

/* ===== MAIN ===== */
.main-content {
  margin-top: 56px;
  padding: 24px 20px 100px;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
}

/* ===== LOGIN ===== */
#loginScreen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.98) 100%);
}
.login-box {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { font-size: 24px; color: var(--accent); }
.login-logo p { font-size: 13px; color: var(--gray); margin-top: 4px; }
.login-subtitle {
  font-size: 13px; color: var(--gray);
  text-align: center; margin-bottom: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.card-title { font-size: 16px; font-weight: 600; }
.card-meta { font-size: 12px; color: var(--gray); margin-top: 3px; }
.card-body { padding: 0 20px 16px; }

/* ===== FORMULARIOS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; color: var(--gray);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--dark2); border: 1px solid var(--dark3);
  border-radius: 8px; color: var(--white); font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: var(--dark2); border-color: var(--dark3); color: var(--white); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-small { padding: 7px 14px; font-size: 13px; }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pendiente  { background: rgba(243,156,18,0.15); color: #f39c12; border: 1px solid rgba(243,156,18,0.3); }
.badge-confirmado { background: rgba(39,174,96,0.15);  color: #27ae60; border: 1px solid rgba(39,174,96,0.3); }
.badge-cancelado  { background: rgba(231,76,60,0.15);  color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.badge-entregado  { background: rgba(52,152,219,0.15); color: #3498db; border: 1px solid rgba(52,152,219,0.3); }

/* ===== TABS ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark);
  border-top: 1px solid var(--dark3);
  display: flex;
  z-index: 100;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 4px 14px;
  color: var(--gray); font-size: 11px; cursor: pointer;
  border: none; background: none; gap: 4px;
  transition: color 0.2s;
}
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item.active { color: var(--accent); }

/* ===== SCREENS ===== */
.screen { display: none; }
.screen.active { display: block; }

/* ===== ORDER DETAIL ===== */
.order-detail-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--dark3);
  font-size: 14px;
}
.order-detail-item:last-child { border-bottom: none; }
.order-detail-item .label { color: var(--gray); }
.menu-price { color: var(--accent); font-weight: 700; font-size: 16px; }

/* ===== MENU CARDS ===== */
.menu-card {
  background: var(--dark2);
  border: 2px solid var(--dark3);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-card:hover { border-color: var(--accent); }
.menu-card.selected { border-color: var(--accent); background: rgba(200,169,110,0.08); }
.menu-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.menu-card-detail { font-size: 12px; color: var(--gray); line-height: 1.6; }
.menu-card-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 8px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--dark);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--dark3);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--gray);
  font-size: 20px; cursor: pointer; padding: 4px;
}
.modal-body { padding: 20px; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--dark3);
  display: flex; gap: 12px; justify-content: flex-end;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--gray);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 14px; }

/* ===== TOAST ===== */
#toastContainer {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; width: calc(100% - 40px); max-width: 400px;
}
.toast {
  padding: 14px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}
.toast-success { background: #1a3a2a; border: 1px solid var(--green); color: #6bdb9e; }
.toast-error   { background: #3a1a1a; border: 1px solid var(--red);   color: #f1948a; }
.toast-info    { background: var(--dark2); border: 1px solid var(--accent); color: var(--accent); }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ===== PAGE TITLE ===== */
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.page-subtitle { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

/* ===== UPLOAD ZONE ===== */
.upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--dark3); border-radius: var(--radius);
  padding: 28px; cursor: pointer; transition: border-color 0.2s; text-align: center;
}
.upload-label:hover { border-color: var(--accent); }
.upload-label i { font-size: 32px; color: var(--gray); margin-bottom: 10px; }
.upload-label span { font-size: 14px; color: var(--gray); }

/* ── Show/hide password toggle ── */
.pw-wrapper { position: relative; }
.pw-wrapper .form-input { padding-right: 42px; width: 100%; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 15px; padding: 4px; line-height: 1;
}
.pw-toggle:hover { color: var(--accent); }
