/* === BeautyMaster — Estilo profesional moderno === */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

:root {
  --primary: #b33ce0;
  --primary-dark: #8b2eb3;
  --accent: #ff5ba0;
  --bg: #faf7fb;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #7a7a7a;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Topbar === */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--shadow);
}

.topbar h1 {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar h1::before {
  content: "content_cut";
  font-family: 'Material Icons Round';
  font-size: 1.4em;
  vertical-align: middle;
}

/* Estado de conexión */
#connection {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#connection::before {
  font-family: 'Material Icons Round';
  content: 'wifi';
  font-size: 1rem;
}

.status.online::before { content: 'wifi'; color: #2ecc71; }
.status.offline::before { content: 'wifi_off'; color: #e74c3c; }

/* === Layout principal === */
.container {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  flex: 1;
}

.left {
  flex: 0 0 400px;
}

.right {
  flex: 1;
}

/* === Tarjetas === */
.card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px var(--shadow);
  margin-bottom: 1.2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* === Formularios === */
h2, h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-top: 0.35rem;
  font-size: 0.95rem;
  transition: border var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 160, 0.2);
}

/* Botones */
button {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

button:hover {
  background: #ff6dad;
  transform: translateY(-1px);
}

button.ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}

button.ghost:hover {
  background: var(--primary-dark);
  color: white;
}

/* Acciones del formulario */
.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

/* === Lista de citas === */
.appointments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-bottom: 1px solid #eee;
  align-items: center;
  transition: background var(--transition);
}

.app-item:hover {
  background: #fafafa;
}

.app-main {
  flex: 1;
}

.app-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-pendiente {
  background: #fff4dd;
  color: #a06b00;
}

.badge-realizada {
  background: #e8ffec;
  color: #0a8a3a;
}

.badge-cancelada {
  background: #ffe1e1;
  color: #c93030;
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* === Filtros === */
.filters h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filters h3::before {
  font-family: 'Material Icons Round';
  content: 'filter_list';
  font-size: 1.1rem;
  color: var(--accent);
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

/* === Responsive === */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .left {
    flex: 1;
  }
  .topbar h1 {
    font-size: 1.1rem;
  }
}
/* === Splash integrado BeautyMaster === */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #b33ce0, #ff5ba0);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  animation: fadeIn 1.2s ease forwards;
}

.splash-logo {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: float 3s ease-in-out infinite;
}

.splash-tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

.splash-loader {
  margin-top: 2rem;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
 
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* === Modal profesional BeautyMaster === */
/* Fondo del modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Contenido del modal */
.modern-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

/* Animación de aparición */
@keyframes modalFadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Título */
.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #b33ce0;
}

/* Cuerpo del modal */
.modal-body p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #333;
}

/* Botón de cierre */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #b33ce0;
}
