/* ============================================================
   PASSOMETRO HSH — VISTA ADMINISTRATIVA PREMIUM
   ============================================================ */

#admin-view {
  position: fixed; inset: 0; z-index: 10005;
  background: #f0f4f8; 
  display: flex;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a202c;
}

/* Sidebar Moderna */
.admin-nav {
  width: 260px; background: #0f2133;
  color: #fff; display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.admin-nav-brand {
  padding: 40px 24px; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-nav-brand .mi { font-size: 22pt; color: #68d3c3; }
.admin-nav-brand span:last-child { font-weight: 800; font-size: 14pt; letter-spacing: -0.5px; }

.admin-nav-links { flex: 1; padding: 32px 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-nav-btn {
  padding: 12px 16px; border-radius: 12px; background: none; border: none;
  color: #94a3b8; display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-align: left; font-size: 9.5pt; font-weight: 600;
  transition: all 0.2s ease;
}
.admin-nav-btn:hover { background: rgba(255,255,255,0.05); color: #f8fafc; }
.admin-nav-btn.active { 
  background: #3182ce; color: #fff; 
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}
.admin-nav-footer { padding: 24px 16px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Main Area */
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-header {
  padding: 24px 40px; background: #fff;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 10;
}
.admin-header h2 { margin: 0; font-size: 18pt; font-weight: 800; letter-spacing: -0.5px; }

.admin-tab-content { flex: 1; overflow-y: auto; padding: 40px; display: none; }
.admin-tab-content.active { display: block; animation: adminFade 0.3s ease-out; }
@keyframes adminFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cards y Dashboard */
.admin-card { 
  background: #fff; border-radius: 16px; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); 
  padding: 24px; border: 1px solid #e2e8f0;
}

/* Barra de Herramientas */
.admin-toolbar { display: flex; gap: 16px; margin-bottom: 24px; align-items: center; }
.search-box { 
  flex: 1; display: flex; align-items: center; gap: 10px; background: #f1f5f9;
  padding: 0 16px; border-radius: 12px; border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.search-box:focus-within { background: #fff; border-color: #3182ce; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); }
.search-box input { border: none; background: transparent; padding: 12px 0; outline: none; font-size: 10pt; width: 100%; }

/* Tablas */
.admin-table-container { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 9.5pt; }
.admin-table th { background: #f8fafc; padding: 14px 16px; font-weight: 700; color: #4a5568; border-bottom: 2px solid #edf2f7; text-transform: uppercase; font-size: 8pt; letter-spacing: 0.5px; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: #2d3748; }

.admin-name-edit-inp {
  background: transparent; border: none; border-bottom: 1px solid transparent;
  font-weight: 700; color: var(--blue-dark); font-size: 9.5pt; width: 100%;
  padding: 4px 0; outline: none; transition: all 0.2s;
}
.admin-name-edit-inp:hover { border-bottom-color: #cbd5e1; }
.admin-name-edit-inp:focus { border-bottom-color: #3182ce; color: #1a202c; }

.admin-table tr:hover { background: #f9fbff; }

/* Grid de Andares */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.admin-floor-card { 
  background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden;
}
.floor-card-head { padding: 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.floor-name-main { font-size: 14pt !important; font-weight: 800 !important; color: #1a202c !important; border: none !important; background: transparent !important; }
.floor-card-body { padding: 20px; }

.posto-config-item { background: #f1f5f9; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.posto-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.posto-name-inp { font-weight: 700 !important; border: none !important; background: transparent !important; color: #3182ce !important; }
.posto-beds-inp { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; font-family: monospace; }

.add-posto-btn { width: 100%; padding: 12px; border: 2px dashed #cbd5e1; border-radius: 12px; background: transparent; color: #64748b; font-weight: 700; cursor: pointer; margin-top: 8px; }
.add-posto-btn:hover { background: #edf2f7; border-color: #3182ce; color: #3182ce; }

/* Bed Tags UI */
.bed-tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 10px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.bed-tag { 
  display: inline-flex; align-items: center; gap: 6px; background: #fff; 
  border: 1px solid #cbd5e1; padding: 4px 10px; border-radius: 8px; 
  font-size: 9pt; font-weight: 700; color: var(--bg-navy); box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.bed-tag button { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 12pt; line-height: 1; padding: 0 2px; }
.bed-tag button:hover { color: var(--red); }

.add-bed-pill { 
  background: #fff; border: 1.5px dashed #cbd5e1; color: #3182ce; 
  padding: 4px 12px; border-radius: 8px; font-size: 8.5pt; font-weight: 700; 
  cursor: pointer; transition: all 0.2s;
}
.add-bed-pill:hover { border-color: #3182ce; background: #f0f7ff; }

/* Status & Mini Buttons */
.admin-pill { padding: 4px 10px; border-radius: 20px; font-size: 7.5pt; font-weight: 700; text-transform: uppercase; }
.status-active { background: #def7ec; color: #03543f; }
.status-inactive { background: #fde8e8; color: #9b1c1c; }

.admin-mini-btn { padding: 6px 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-size: 8pt; font-weight: 600; }
.admin-mini-btn:hover { border-color: #3182ce; color: #3182ce; }
.admin-mini-btn.btn-danger:hover { background: #fde8e8; border-color: #f8b4b4; color: #c81e1e; }
