/* ===========================
    VARIABLES Y CONFIG GLOBALES
   =========================== */
:root {
  /* Colores Principales */
  --color-principal: #2575fc;
  --color-gradiente-inicio: #6a11cb;
  --color-exito: #22c55e;
  --color-error: #dc3545;
  --color-advertencia: #f59e0b;
  --color-info: #3b82f6;

  /* Tonos de Texto */
  --color-texto-base: #333;
  --color-texto-claro: #fff;
  --color-texto-secundario: #495057;
  --color-texto-muted: #6b7280;

  /* Fondos y Bordes */
  --color-fondo-claro: #f8f9fa;
  --color-borde: #e0e0e0;
  --color-borde-focus: #2575fc;
  --color-sombra-focus: rgba(37, 117, 252, 0.12);

  /* TamaÁÆ’Á‚Â±os y Radios */
  --radio-borde: 12px;
  --radio-borde-pequeno: 8px;
  --radio-borde-control: 10px;
}

/* ===========================
    BASE / LAYOUT
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--color-gradiente-inicio) 0%, var(--color-principal) 100%);
  color: var(--color-texto-base);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Agrega esta clase de utilidad si no la tienes */
.hidden {
  display: none !important;
}

.container {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    max-height: 850px;
    background: var(--color-texto-claro);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

#appContainer .container {
    width: 100%;
}


.header {
  background: linear-gradient(135deg, var(--color-gradiente-inicio) 0%, var(--color-principal) 100%);
  color: var(--color-texto-claro);
  padding: 20px;
  text-align: center;
  position: relative;
}

.header h1 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 5px;
}

.header p {
  font-size: 0.875rem; /* 14px */
  opacity: 0.95;
  margin-bottom: 5px;
}

.top-right {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--color-texto-claro);
  font-size: 0.75rem; /* 12px */
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px 16px;  /* 0 arriba, 16px en los lados y abajo */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: #94a3b8 #f1f5f9;
}

/* evita hueco superior si el primer hijo trae margin-top */
.content > *:first-child { margin-top: 0; }

/* Barra de scroll mÁÆ’Â¡s ancha (en Chrome/Edge/Safari) */
.content::-webkit-scrollbar { width: 12px; } /* antes: 6px */
.content::-webkit-scrollbar-track { 
  background: #f1f5f9; 
  border-radius: 8px;           /* antes: 3px */
}
.content::-webkit-scrollbar-thumb { 
  background: #94a3b8;          /* antes: #888 */
  border-radius: 8px;           /* antes: 3px */
  border: 2px solid #f1f5f9;    /* para que se vea ÁÂ¢Á¢â€šÂ¬Á…â€œgruesaÁÂ¢Á¢â€šÂ¬Á‚Â pero suave */
}
.content::-webkit-scrollbar-thumb:hover { background: #64748b; }


/* ===========================
    TIPOGRAFÁÆ’Á‚ÂA / ELEMENTOS
   =========================== */
.welcome { text-align: center; margin-bottom: 20px; }
.welcome h2 { color: var(--color-principal); margin-bottom: 10px; font-size: 1.375rem; /* 22px */ }

.balance {
  background: linear-gradient(135deg, var(--color-gradiente-inicio) 0%, var(--color-principal) 100%);
  color: var(--color-texto-claro);
  border-radius: var(--radio-borde);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.balance h3 { font-size: 1rem; /* 16px */ margin-bottom: 10px; opacity: 0.95; }
.balance .amount { font-size: 1.625rem; /* 26px */ font-weight: 700; }

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radio-borde-control);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem; /* 16px */
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gradiente-inicio) 0%, var(--color-principal) 100%);
  color: var(--color-texto-claro);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* --- ESTILOS DE BOTONES AGRUPADOS (DRY) --- */
.btn-secondary { background: var(--color-fondo-claro); color: var(--color-principal); border: 1px solid var(--color-borde); }

.btn-danger,
.btn-success,
.btn-warning,
.btn-info {
  color: var(--color-texto-claro);
  border: 0;
}

.btn-danger { background: var(--color-error); }
.btn-success { background: var(--color-exito); }
.btn-warning { background: var(--color-advertencia); }
.btn-info { background: var(--color-info); }

.btn-sm { padding: 8px 15px; font-size: 0.875rem; /* 14px */ }
.btn-xs { padding: 5px 10px; font-size: 0.75rem; /* 12px */ }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--color-texto-secundario); font-size: 0.875rem; /* 14px */ }
.form-control, textarea, select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: var(--radio-borde-control);
  font-size: 1rem; /* 16px */
  color: #1f2937; /* ÁÂ¢Á‚Â¬Á¢â‚¬Â¦ÁÂ¯Á‚Â¸Á‚Â AGREGAR ESTA LÁÆ’Á‚ÂNEA */
  background-color: white; /* ÁÂ¢Á‚Â¬Á¢â‚¬Â¦ÁÂ¯Á‚Â¸Á‚Â AGREGAR ESTA LÁÆ’Á‚ÂNEA */
}

.form-control:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-borde-focus);
  box-shadow: 0 0 0 3px var(--color-sombra-focus);
}

.notification { background: var(--color-fondo-claro); border-radius: var(--radio-borde-control); padding: 15px; margin-bottom: 15px; display: flex; align-items: center; }
.notification-icon { background: var(--color-principal); color: var(--color-texto-claro); width: 42px; height: 42px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-right: 15px; flex-shrink: 0; font-size: 1.125rem; /* 18px */ }
.notification-content { flex: 1; }
.notification-title { font-weight: 600; margin-bottom: 5px; font-size: 1rem; /* 16px */ }
.notification-desc { font-size: 0.875rem; /* 14px */ color: #6c757d; }

.menu { 
  display: flex; 
  justify-content: space-around; 
  padding: 15px 0; 
  background: var(--color-texto-claro); 
  border-top: 1px solid var(--color-borde);
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.menu-item { text-align: center; color: #6c757d; font-size: 0.75rem; /* 12px */ cursor: pointer; flex: 1; padding: 5px; transition: all 0.2s ease; }
.menu-item.active { color: var(--color-principal); }
.menu-icon { font-size: 1.25rem; /* 20px */ margin-bottom: 5px; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* Sub-tabs de Tesorería */
.treasury-subtab-content { display: none; }
.treasury-subtab-content.active { display: block; }

.history-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #e0e0e0; }
.history-date { color: #6c757d; font-size: 0.8125rem; /* 13px */ }
.history-amount { font-weight: 600; font-size: 1rem; /* 16px */ }
.paid { color: var(--color-exito); }
.pending { color: var(--color-error); }

.row { display: flex; gap: 15px; }
.row > .col { flex: 1; }

.small { font-size: 0.875rem; /* 14px */ color: #6c757d; }
.link { color: var(--color-principal); text-decoration: underline; cursor: pointer; }
.success-banner { background: #d4edda; color: #155724; padding: 12px; border-radius: var(--radio-borde-pequeno); margin-bottom: 15px; font-size: 0.875rem; /* 14px */ }
.card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: var(--radio-borde); padding: 15px; margin-bottom: 15px; }
.pill { padding: 8px 12px; border-radius: 999px; background: #e5e7eb; font-size: 0.875rem; /* 14px */ }
.muted { color: var(--color-texto-muted); }
.divider { height: 1px; background: #eee; margin: 15px 0; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; /* 12px */ font-weight: 600; margin-left: 5px; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-master { background: #fae8ff; color: #a21caf; }
.badge-primary { background: #e0e7ff; color: #3730a3; }

/* Badge de notificaciÁÆ’Á‚Â³n en menÁÆ’Á‚Âº (posicionado) */
.menu-icon {
  position: relative !important; /* Necesario para posicionar el badge */
  display: inline-block;
}

.menu-icon .badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: #ef4444 !important;
  color: white !important;
  border-radius: 10px !important;
  padding: 2px 6px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  text-align: center !important;
  display: block !important; /* Cambiado de none a block */
  margin-left: 0 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  z-index: 100 !important;
  line-height: 1.2 !important;
}

/* Asegurar que el badge estÁÆ’Á‚Â© visible cuando tenga contenido */
#communicationBadge {
  display: none !important; /* Por defecto oculto */
}

#communicationBadge:not(:empty) {
  display: block !important; /* Visible cuando tiene contenido */
}

.user-balance { background: var(--color-fondo-claro); border-radius: var(--radio-borde-control); padding: 12px; margin-bottom: 12px; }
.user-balance .amount { font-size: 1.25rem; /* 20px */ font-weight: bold; }

/* ===========================
    AMENIDADES
   =========================== */
.amenity-card { background: var(--color-texto-claro); border: 1px solid #e5e7eb; border-radius: var(--radio-borde); padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.amenity-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.amenity-title { font-size: 1.125rem; /* 18px */ font-weight: 600; color: var(--color-principal); }
.amenity-status { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; /* 12px */ font-weight: 600; }
.status-available { background: #dcfce7; color: #166534; }
.status-occupied { background: #fee2e2; color: #991b1b; }

/* ===========================
    TICKETS/REPORTES
   =========================== */
.ticket-item { background: var(--color-texto-claro); border: 1px solid #e5e7eb; border-radius: var(--radio-borde); padding: 15px; margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.ticket-item:hover { box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.ticket-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ticket-title { font-weight: 600; font-size: 1rem; /* 16px */ }
.ticket-priority { padding: 3px 8px; border-radius: 4px; font-size: 0.6875rem; /* 11px */ font-weight: 600; }
.priority-low { background: #f0f9ff; color: #0369a1; }
.priority-medium { background: #fef3c7; color: #92400e; }
.priority-high { background: #fee2e2; color: #991b1b; }
.ticket-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; /* 12px */ margin-top: 8px; }
.status-open { background: #dbeafe; color: #1e40af; }
.status-progress { background: #fef3c7; color: #92400e; }
.status-closed { background: #dcfce7; color: #166534; }

/* ===========================
    DOCUMENTOS
   =========================== */
.doc-item { display: flex; align-items: center; padding: 12px; background: var(--color-fondo-claro); border-radius: var(--radio-borde-control); margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.doc-item:hover { background: #e0e7ff; }
.doc-icon { width: 40px; height: 40px; background: var(--color-principal); color: var(--color-texto-claro); border-radius: var(--radio-borde-pequeno); display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.doc-info { flex: 1; }
.doc-name { font-weight: 600; margin-bottom: 3px; }
.doc-size { font-size: 0.75rem; /* 12px */ color: var(--color-texto-muted); }

/* ===========================
    ESTADÁÆ’Á‚ÂSTICAS/CHARTS
   =========================== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-card { background: var(--color-fondo-claro); border-radius: var(--radio-borde-control); padding: 15px; text-align: center; transition: all .2s; cursor: pointer; }
.stat-card:hover { background: #e0e7ff; transform: translateY(-2px); }
.stat-value { font-size: 1.5rem; /* 24px */ font-weight: bold; margin-bottom: 8px; }
.stat-label { font-size: 0.875rem; /* 14px */ color: var(--color-texto-muted); }
.chart-container { background: var(--color-texto-claro); border: 1px solid #e5e7eb; border-radius: var(--radio-borde); padding: 20px; margin-bottom: 20px; }
.chart-title { font-size: 1rem; /* 16px */ font-weight: 600; margin-bottom: 15px; color: #374151; }
.chart-bar { display: flex; align-items: center; margin: 10px 0; }
.chart-label { width: 80px; font-size: 0.75rem; /* 12px */ color: var(--color-texto-muted); }
.chart-value { flex: 1; height: 24px; background: #e0e7ff; border-radius: 4px; position: relative; overflow: hidden; }
.chart-fill { height: 100%; background: linear-gradient(90deg, var(--color-gradiente-inicio) 0%, var(--color-principal) 100%); transition: width .5s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.chart-amount { font-size: 0.6875rem; /* 11px */ font-weight: 600; color: var(--color-texto-claro); }

/* ===========================
    ADMIN / MASTER
   =========================== */
.admin-panel { background: #f0f9ff; border-radius: var(--radio-borde); padding: 20px; margin-bottom: 20px; }
.admin-panel h4 { color: #0369a1; margin-bottom: 15px; font-size: 1.125rem; /* 18px */ }
.admin-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.admin-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-weight: 600; color: #6c757d; transition: all .2s; }
.admin-tab:hover { color: var(--color-principal); }
.admin-tab.active { color: var(--color-principal); border-bottom: 2px solid var(--color-principal); }

/* ===========================
    ADMIN BUTTONS GRID
   =========================== */
.admin-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.admin-button {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 15px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.admin-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 117, 252, 0.15);
  border-color: var(--color-principal);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

.admin-button:active {
  transform: translateY(-1px);
}

.admin-button-single {
  grid-column: 1 / -1;
  max-width: 300px;
  margin: 0 auto;
}

.admin-button-icon {
  font-size: 1.8rem;
  color: var(--color-principal);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.admin-button:hover .admin-button-icon {
  color: var(--color-gradiente-inicio);
  transform: scale(1.1);
}

.admin-button-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-texto-base);
  line-height: 1.3;
}

/* --- CÁÆ’Á¢â‚¬Å“DIGO AÁÆ’Á¢â‚¬ËœADIDO PARA LOS BOTONES DE LA TARJETA --- */
.condo-actions {
  display: flex;          /* Pone los botones en fila */
  gap: 10px;              /* Crea un espacio entre los botones */
  margin-top: 15px;       /* Crea un espacio arriba, separÁÆ’Â¡ndolo de las estadÁÆ’Á‚Â­sticas */
  border-top: 1px solid #eee; /* LÁÆ’Á‚Â­nea divisora opcional para un look mÁÆ’Â¡s limpio */
  padding-top: 15px;      /* Espacio sobre los botones */
}

/* ===========================
    OVERLAYS / MODALES
   =========================== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; justify-content: center; align-items: center; z-index: 1000; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.auth-card { background: var(--color-texto-claro); border-radius: var(--radio-borde); width: 400px; max-width: 92vw; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: slideUp .3s; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.auth-header { text-align: center; margin-bottom: 15px; }
.auth-tabs { display: flex; margin: 15px 0 20px; border-bottom: 1px solid #eee; }
.auth-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-size: 1rem; /* 16px */ transition: all .2s; }
.auth-tab.active { border-bottom: 2px solid var(--color-principal); color: var(--color-principal); font-weight: 600; }
.error-message { color: var(--color-error); font-size: 0.875rem; /* 14px */ margin-top: 5px; }

.custom-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--color-texto-claro); border-radius: var(--radio-borde); width: 400px; max-width: 92vw; max-height: 80vh; padding: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow-y: auto; }
.modal-content h3 { margin-bottom: 15px; font-size: 1.25rem; /* 20px */ }
.modal-actions { display: flex; gap: 15px; margin-top: 20px; justify-content: center; }

#modalQrContainer {
  display: flex;
  justify-content: center; /* Centra el contenido horizontalmente */
  align-items: center;     /* Centra el contenido verticalmente */
  margin-bottom: 15px;     /* AÁÆ’Á‚Â±ade un espacio entre el QR y el tÁÆ’Á‚Â­tulo */
}


/* ===========================
    FILTROS Y BÁÆ’Á…Â¡SQUEDA
   =========================== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.filter-btn { padding: 8px 12px; border: 1px solid var(--color-borde); border-radius: var(--radio-borde-pequeno); background: var(--color-texto-claro); color: var(--color-texto-muted); cursor: pointer; font-size: 0.875rem; /* 14px */ transition: all .2s; }
.filter-btn:hover { background: var(--color-fondo-claro); }
.filter-btn.active { background: var(--color-principal); color: var(--color-texto-claro); border-color: var(--color-principal); }
.search-box { flex: 1; min-width: 150px; padding: 8px 12px; border: 1px solid var(--color-borde); border-radius: var(--radio-borde-pequeno); font-size: 0.875rem; /* 14px */ }

/* ===========================
    TEMPLATES
   =========================== */
.template-item { padding: 10px; background: var(--color-fondo-claro); border-radius: var(--radio-borde-pequeno); margin-bottom: 8px; cursor: pointer; transition: all .2s; }
.template-item:hover { background: #e0e7ff; }
.template-title { font-weight: 600; font-size: 0.875rem; /* 14px */ margin-bottom: 4px; }
.template-preview { font-size: 0.75rem; /* 12px */ color: var(--color-texto-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===========================
    QUICK ACTIONS
   =========================== */
.quick-action { background: var(--color-fondo-claro); border-radius: var(--radio-borde-control); padding: 12px; text-align: center; cursor: pointer; transition: all .2s; }
.quick-action:hover { background: #e0e7ff; transform: translateY(-2px); }
.quick-action-icon { font-size: 1.5rem; /* 24px */ margin-bottom: 5px; color: var(--color-principal); }
.quick-action-label { font-size: 0.75rem; /* 12px */ color: var(--color-texto-muted); }

/* ===========================
    TABS
   =========================== */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block; 
}

/* ===========================
    CONDO CARDS (MASTER)
   =========================== */
.condo-card { background: var(--color-texto-claro); border: 1px solid #e5e7eb; border-radius: var(--radio-borde); padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.condo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.condo-title { font-size: 1rem; /* 16px */ font-weight: 600; color: var(--color-principal); }
.condo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.condo-stat { text-align: center; }
.condo-stat-value { font-size: 1.125rem; /* 18px */ font-weight: bold; color: var(--color-principal); }
.condo-stat-label { font-size: 0.6875rem; /* 11px */ color: var(--color-texto-muted); }

/* ===========================
    RESERVACIÁÆ’Á¢â‚¬Å“N MODAL
   =========================== */
/* --- REGLA SIN !important --- */
#reservationCosts .card {
  background: #f0f9ff;
  border: 1px solid #e0e7ff;
}

#timeSlotsList {
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
}

/* --- REGLA CONSOLIDADA PARA .reservation-time-slot --- */
.reservation-time-slot {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem; /* 14px */
}

.reservation-time-slot:hover:not(.unavailable) {
  background: #f3f4f6;
  border-color: var(--color-principal);
}

.reservation-time-slot.unavailable,
.reservation-time-slot:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
}

.reservation-time-slot.selected {
  background: var(--color-principal);
  color: var(--color-texto-claro);
  border-color: var(--color-principal);
}

/* ===========================
    MENÁÆ’Á…Â¡ ITEMS ESPECÁÆ’Á‚ÂFICOS
   =========================== */
#notifMenuItem, #adminMenuItem, #masterMenuItem {
  transition: opacity 0.3s ease;
}

.menu-item[data-tab="6"] .menu-icon,
.menu-item[data-tab="7"] .menu-icon,
.menu-item[data-tab="8"] .menu-icon {
  font-size: 1.125rem; /* Iconos ligeramente mÁÆ’Â¡s pequeÁÆ’Á‚Â±os para admin/master */
}

/* ===========================
    SCROLLBARS MEJORADOS
   =========================== */
#timeSlotsList::-webkit-scrollbar {
  width: 4px;
}

#timeSlotsList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

#timeSlotsList::-webkit-scrollbar-thumb {
  background: var(--color-principal);
  border-radius: 2px;
}

#timeSlotsList::-webkit-scrollbar-thumb:hover {
  background: var(--color-gradiente-inicio);
}

.content::after {
    content: '';
    display: block;
    height: 20px;       /* Debe ser igual al padding inferior */
    flex-shrink: 0;     /* MUY IMPORTANTE: evita que se encoja */
}

/* PAQUETERÁÆ’Á‚ÂA - CSS SIMPLE */
.package-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.package-info {
  flex: 1;
}

.package-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #2575fc;
  margin-bottom: 5px;
}

.package-courier {
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 3px;
}

.package-actions {
  display: flex;
  gap: 8px;
}

/* ESTILOS PARA SISTEMA DE AMENIDADES MEJORADO */

.status-out-of-service { 
  background: #fee2e2; 
  color: #991b1b; 
}

.status-pending { 
  background: #fef3c7; 
  color: #92400e; 
}

.badge-pending { 
  background: #fef3c7; 
  color: #92400e; 
}

.badge-confirmed { 
  background: #dcfce7; 
  color: #166534; 
}

.badge-rejected { 
  background: #fee2e2; 
  color: #991b1b; 
}

.badge-cancelled { 
  background: #f3f4f6; 
  color: #6b7280; 
}

/* Calendario de reservas */
.reservation-calendar-day {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: white;
}

.reservation-calendar-date {
  font-weight: 600;
  color: #2575fc;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.reservation-calendar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.reservation-calendar-item:last-child {
  border-bottom: none;
}

.external-reservation-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
}

/* Reservas pendientes */
.pending-reservation-card {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.confirmed-reservation-card {
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
}

/* Botones de estado de amenidad */
.amenity-service-toggle {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Responsive para modales grandes */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    margin: 10px;
  }
  
  .reservation-calendar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* CALENDARIO */
.calendar-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  background: #2575fc;
  color: white;
  padding: 15px;
  text-align: center;
}

.calendar-header h4 {
  margin: 0;
  font-weight: 600;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.calendar-weekday {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  border-right: 1px solid #dee2e6;
}

.calendar-weekday:last-child {
  border-right: none;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 120px;
}

.calendar-day {
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  padding: 8px;
  position: relative;
  background: white;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background: #f8f9fa;
}

.calendar-day:last-child {
  border-right: none;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #adb5bd;
}

.calendar-day.today {
  background: #e3f2fd;
  border: 2px solid #2575fc;
}

.calendar-day.has-reservations {
  background: #fff3cd;
}

.calendar-day-number {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #495057;
}

.other-month .calendar-day-number {
  color: #adb5bd;
}

.today .calendar-day-number {
  color: #2575fc;
  font-weight: 700;
}

.calendar-day-reservations {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 80px;
  overflow: hidden;
}

.calendar-reservation {
  background: #2575fc;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-reservation.external {
  background: #f59e0b;
}

.calendar-more {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-days {
    grid-auto-rows: 80px;
  }
  
  .calendar-day {
    padding: 4px;
  }
  
  .calendar-reservation {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
  
  .calendar-day-number {
    font-size: 0.9rem;
  }
}

.calendar-reservation:hover {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}

/* Alerta para indicadores del panel */
.stat-card-alert {
  background: #fef3c7 !important;
  border-left: 4px solid #f59e0b !important;
}

.stat-card-alert .stat-number {
  color: #d97706 !important;
  font-weight: 700 !important;
}

#dashboardAmenities {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

/* Botones de navegaciÁÆ’Á‚Â³n en modales */
/* Asegurar que el modal tenga posiciÁÆ’Á‚Â³n relativa */
.modal-content {
  position: relative;
}

/* Botones de navegaciÁÆ’Á‚Â³n en modales */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6c757d;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e9ecef;
  color: #dc3545;
  transform: scale(1.1);
}

.modal-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6c757d;
  transition: all 0.2s;
  z-index: 10;
}

.modal-back-btn:hover {
  background: #e9ecef;
  color: #2575fc;
  transform: scale(1.1);
}


/* ===========================
    RESPONSIVE PARA MÁÆ’Á¢â‚¬Å“VILES
   =========================== */
@media (max-width: 480px) {
  .container {
    margin: 10px;
    border-radius: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .header {
    padding: 15px;
  }
  
  .content {
    padding: 15px;
    max-height: none;
    flex: 1;
  }
  
  /* Stats en 2 columnas en mÁÆ’Á‚Â³vil */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .stat-card {
    padding: 12px !important;
  }
  
  .stat-value {
    font-size: 1.8rem !important;
    margin-bottom: 5px !important;
  }
  
  .stat-label {
    font-size: 0.75rem !important;
  }
  
  .row {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-content {
    margin: 20px;
    max-height: 85vh;
  }
  
  .admin-buttons-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .admin-button {
    min-height: 75px;
    padding: 12px 8px;
  }
  
  .admin-button-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  
  .admin-button-label {
    font-size: 0.8rem;
  }
}

/* ===========================
    RESPONSIVE PARA TABLETS/LAPTOPS
   =========================== */
@media (min-width: 481px) and (max-width: 1023px) {
  .container {
    max-width: 600px;
    width: 95%;
  }
}

/* ===========================
    DISEÁÆ’Á¢â‚¬ËœO PARA PANTALLAS GRANDES (PC/Laptop)
   =========================== */
@media (min-width: 1024px) {
  body {
    padding: 20px;
  }
  
  #appContainer .container {
    max-width: 800px !important;
    width: 800px !important;
    height: 88vh;
    max-height: 850px;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 20px 30px;
  }

  .header h1 {
    font-size: 1.8rem;
    margin-bottom: 3px;
  }

  .header p {
    font-size: 0.9rem;
    margin: 0;
  }

  .header .top-right {
    position: static !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    right: auto !important;
    top: auto !important;
  }
  
  .content {
    padding: 30px;
  }
  
  .admin-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .admin-button-single {
    grid-column: 2 / 3;
    justify-self: center;
    max-width: none;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal-content,
  .auth-card {
    max-width: 600px;
    width: 600px;
  }
  
  .menu {
    padding: 20px 0;
  }
  
  .menu-item {
    font-size: 0.9rem;
  }
  
  .menu-icon {
    font-size: 1.5rem;
  }
}

/* ===========================
    MENÁÆ’Á…Â¡ "MÁÆ’Á‚ÂS" DESPLEGABLE
   =========================== */
.more-menu {
    position: fixed;
    bottom: 70px;
    right: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.more-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.more-menu-item:last-child {
    border-bottom: none;
}

.more-menu-item:hover {
    background: #f8f9fa;
}

.more-menu-item i {
    font-size: 1.1rem;
    color: var(--color-principal);
    width: 20px;
    text-align: center;
}

.more-menu-item span {
    font-size: 0.95rem;
    color: var(--color-texto-base);
    flex: 1;
}

/* AnimaciÁÆ’Á‚Â³n del ÁÆ’Á‚Â­cono "MÁÆ’Â¡s" cuando estÁÆ’Â¡ activo */
.menu-item[data-tab="more"].active .menu-icon {
    transform: rotate(90deg);
}

.menu-item[data-tab="more"] .menu-icon {
    transition: transform 0.3s;
}

/* Responsive: ajustar posiciÁÆ’Á‚Â³n en diferentes tamaÁÆ’Á‚Â±os */
@media (max-width: 768px) {
    .more-menu {
        right: 5px;
        min-width: 170px;
    }
}

@media (min-width: 769px) {
    .more-menu {
        right: calc((100vw - 800px) / 2 + 10px);
    }
}

/* Para pantallas muy grandes, mantenerlo cerca del botÁÆ’Á‚Â³n */
@media (min-width: 1200px) {
    .more-menu {
        right: calc((100vw - 800px) / 2 + 10px);
    }
}

/* ===========================
    PERFIL - CONFIGURACIÁÆ’Á¢â‚¬Å“N COMPLETA
   =========================== */
/* ===========================
    PERFIL - CONFIGURACIÁÆ’Á¢â‚¬Å“N COMPLETA
   =========================== */
#profileContent {
  max-width: clamp(360px, 92vw, 1000px);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 100px;
  box-sizing: border-box;
  height: auto;
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* TÁÆ’Á‚Â­tulos */
#profileContent h3 {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 25px;
}

#profileContent h5 {
  color: var(--color-principal);
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tarjetas y formularios */
#profileContent .card {
  margin-bottom: 20px;
  text-align: left;
}

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

#profileContent .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--color-texto-base);
  font-size: 0.9rem;
}

#profileContent .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

#profileContent .form-control:focus {
  outline: none;
  border-color: var(--color-principal);
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

#profileContent .form-control:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

#profileContent textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

#profileContent select.form-control {
  cursor: pointer;
}

/* Filas y columnas */
#profileContent .row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

#profileContent .row .col {
  flex: 1;
}

/* Responsive MÁÆ’Á‚Â³vil */
@media (max-width: 768px) {
  #profileContent {
    padding: 20px 10px 100px 10px;
  }
  
  #profileContent .row {
    flex-direction: column;
    gap: 0;
  }
  
  #profileContent .row .col {
    width: 100%;
  }
}

/* Notificaciones */
#profileContent .notification {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

#profileContent .notification-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
}

#profileContent .notification-content {
  flex: 1;
}

#profileContent .notification-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

#profileContent .notification-desc {
  font-size: 0.85rem;
  line-height: 1.5;
}

#profileContent .small.muted {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* Responsive MÁÆ’Á‚Â³vil */
@media (max-width: 768px) {
  #profileContent {
    padding: 20px 10px 100px 10px;
  }
  
  #profileContent .row {
    flex-direction: column;
    gap: 0;
  }
  
  #profileContent .row .col {
    width: 100%;
  }
}

/* Responsive Tablet */
@media (min-width: 768px) {
  #profileContent {
    max-width: clamp(480px, 88vw, 1000px);
  }
  
  #profileContent .row {
    flex-direction: row;
  }
}

/* Responsive Desktop */
@media (min-width: 1200px) {
  #profileContent {
    max-width: clamp(640px, 84vw, 1100px);
  }
}

/* Evita hueco por colapso de margen del primer hijo dentro de .content */
.content > *:first-child { 
  margin-top: 0;
}

html, body { height: 100%; }

/* App abierta: sin scroll externo y sin padding/margen del body */
html.no-body-scroll { overflow: hidden; }
body.no-body-scroll {
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===========================
    FIX: Eliminar espacio superior en todas las tabs
   =========================== */

/* Eliminar padding superior cuando la tab estÁÆ’Â¡ activa */
.tab-content.active {
  padding-top: 0 !important;
}

/* Eliminar margen del primer hijo en TODAS las tabs */
.tab-content > *:first-child {
  margin-top: 0 !important;
}

/* EspecÁÆ’Á‚Â­fico para Mi Perfil */
#profileContent {
  padding-top: 0 !important;
}

#profileContent > h2:first-child,
#profileContent > h3:first-child {
  margin-top: 0 !important;
}

/* ===========================
    FIX DEFINITIVO: Eliminar espacio superior en Mi Perfil
   =========================== */

/* Eliminar cualquier espacio en el contenedor de tabs */
.tab-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Forzar que profileContent empiece desde arriba */
#profileContent {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Asegurar que .content no tenga padding superior */
.content {
  padding-top: 0 !important;
}

/* Agregar espacio superior al primer elemento en todas las tabs */
.tab-content > *:first-child {
  margin-top: 16px !important;
}

/* Tarjetas informativas en dashboard (hover sutil) */
.stat-card {
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AnimaciÁÆ’Á‚Â³n para indicador de escritura */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Vista compacta de usuarios */
.user-card-compact {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.user-card-compact:hover {
    border-color: var(--color-principal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-card-compact .user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-card-compact .user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
}

.user-card-compact .user-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6b7280;
}

.user-card-compact .user-actions {
    display: flex;
    gap: 5px;
}

.user-card-compact .btn-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
}

.user-card-compact .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
}

/* Botones de vista */
.btn-group {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid #d1d5db;
}

.btn-group .btn:last-child {
    border-right: none;
}

.btn-group .btn.active {
    background: var(--color-principal);
    color: white;
    border-color: var(--color-principal);
}

/* Responsive */
@media (max-width: 768px) {
    .user-card-compact {
        grid-template-columns: 35px 1fr;
        gap: 10px;
    }
    
    .user-card-compact .user-actions {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 5px;
    }
    
    .user-card-compact .user-details {
        flex-direction: column;
        gap: 3px;
    }
}

/* Asegurar que modales ocultos NO se muestren */
.custom-modal[style*="display: none"],
.custom-modal[style*="display:none"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==================== CALENDARIO DE RESERVAS ==================== */
.calendar-container {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  padding: 10px 5px;
  font-size: 0.85rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  min-height: 80px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px;
  background: white;
  transition: all 0.2s;
  cursor: pointer;
}

.calendar-day:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-day.other-month {
  opacity: 0.4;
  background: #f9fafb;
}

.calendar-day.today {
  background: #dbeafe;
  border-color: #3b82f6;
}

.calendar-day.has-reservations {
  border-color: #22c55e;
  background: #f0fdf4;
}

.calendar-day-number {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 5px;
}

.calendar-day-reservations {
  font-size: 0.7rem;
}

.calendar-reservation {
  background: #3b82f6;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-reservation.external {
  background: #f59e0b;
}

.calendar-more {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ✅ Estilos para slots de horario seleccionados */
#staffExternalSlotsList .btn.active,
#externalTimeSlotsList .btn.active,
.reservation-time-slot.selected {
    background: var(--color-principal) !important;
    color: white !important;
    border-color: var(--color-principal) !important;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

#staffExternalSlotsList .btn:not(:disabled):hover,
#externalTimeSlotsList .btn:not(:disabled):hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--color-principal);
}

/* ===========================
    FIX: Eliminar scroll interno en tabs
   =========================== */
.tab-content {
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* El scroll principal debe estar solo en .content */
.content {
  overflow-x: hidden;
}

/* Ocultar scrollbar fea en profileContent */
#profileContent::-webkit-scrollbar {
  display: none;
  width: 0;
}

/* ===========================
    ACORDEONES DE PERFIL
   =========================== */
.profile-accordion {
  overflow: hidden;
}

.profile-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  margin: -15px;
  margin-bottom: 0;
  transition: background 0.2s;
  border-radius: 8px;
}

.profile-accordion-header:hover {
  background: #f3f4f6;
}

.profile-accordion-content {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: 15px;
}

.profile-accordion-header i:last-child {
  color: #9ca3af;
}

.profile-accordion.open .profile-accordion-header i:last-child {
  transform: rotate(180deg);
}