/* =========================
   MEDICLOUD (Login + Panel) - estilo del documento
   Compatible con tus HTML:
   - login.html: .login-container .login-header .form-group .btn-primary .demo
   - admin_dashboard.html y demás: .page .glass .topbar .stats .stat .table-wrap .btn .link .a
========================= */

:root{
  --bg1:#060b1a;
  --bg2:#0b1230;

  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.10);

  --text:#eaf0ff;
  --muted: rgba(234,240,255,.70);

  --primary:#27b5ff;
  --primary2:#0ea5e9;

  --success:#22c55e;
  --danger:#ef4444;

  --shadow: 0 25px 70px rgba(0,0,0,.55);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 20% 10%, rgba(39,181,255,.22), transparent 55%),
    radial-gradient(900px 600px at 85% 18%, rgba(168,85,247,.22), transparent 55%),
    radial-gradient(900px 600px at 40% 90%, rgba(99,102,241,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* =========================
   Cookie banner FIX (GitHub)
========================= */
.cookie-banner{
  position: fixed !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  width: min(920px, calc(100% - 28px)) !important;
  padding: 14px 16px !important;

  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,0.45) !important;
}

.cookie-text{
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: rgba(234,240,255,0.78) !important;
}

.cookie-link{
  color: #7dd3fc !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.cookie-link:hover{ text-decoration: underline !important; }

.cookie-btn{
  width: auto !important;
  min-width: 120px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #27b5ff, #0ea5e9) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: transform .12s ease, filter .12s ease !important;
}
.cookie-btn:hover{
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

@media (max-width: 560px){
  .cookie-banner{
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cookie-btn{
    width: 100% !important;
  }
}





/* Botón login igual al del documento */
.login-container .btn-primary{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #27b5ff, #0ea5e9);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(39,181,255,0.18);
}
.login-container .btn-primary:hover{
  filter: brightness(1.05);
}



.cookie-banner p {
  margin: 0;
  color: #cbd5f5;
}

.cookie-banner a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
}


/* ====== panel glass genérico ====== */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* ====== contenedor páginas panel ====== */
.page{
  max-width: 1180px;
  margin: 32px auto 60px;
  padding: 0 18px;
}

/* ====== TOPBAR ====== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.avatar{
  width:44px;
  height:44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.2px;
  background: radial-gradient(circle at top left, rgba(39,181,255,.85), rgba(168,85,247,.55));
  border: 1px solid rgba(255,255,255,.18);
}

.brand h1{
  font-size: 16px;
  font-weight: 800;
}

.brand .sub{
  margin-top:2px;
  font-size: 12px;
  color: var(--muted);
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* ====== BOTONES ====== */
.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  text-decoration:none;
  color: white;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: 1px solid rgba(255,255,255,.10);
}

.link{
  color: rgba(234,240,255,.70);
  font-size: 12px;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.link:hover{ filter: brightness(1.08); }

/* ====== STATS ====== */
.stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}

.stat{
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.stat .label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.stat .value{
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .2px;
}

.value.blue{ color: #7dd3fc; }
.value.purple{ color: #c4b5fd; }
.value.green{ color: #86efac; }
.value.orange{ color: #fdba74; }

/* ====== SECCIONES ====== */
.section{
  padding: 16px;
  margin-top: 14px;
}
.section-title{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}
.section-sub{
  font-size: 12px;
  color: var(--muted);
}
.quick{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ====== TABLAS ====== */
.table-wrap{
  overflow:auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
}

table{
  width:100%;
  border-collapse: collapse;
  min-width: 820px;
  background: rgba(0,0,0,.10);
}

thead th{
  text-align:left;
  font-size: 11px;
  color: rgba(234,240,255,.65);
  font-weight: 900;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

tbody td{
  padding: 12px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(234,240,255,.92);
}

tbody tr:hover{
  background: rgba(255,255,255,.03);
}

/* links acciones */
.a{
  color: #60a5fa;
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
}
.a:hover{ text-decoration: underline; }
.a.danger{ color: #f87171; }

/* badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
}
.badge.ok{
  background: rgba(34,197,94,.14);
  color: #86efac;
  border-color: rgba(34,197,94,.18);
}

/* =========================
   LOGIN (tu estilo azul, intacto)
========================= */
.login-container{
  width: 420px;
  margin: 8vh auto;
  padding: 26px;
  border-radius: 16px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

.login-header{
  text-align:center;
  margin-bottom: 18px;
}

.login-header h1{
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.login-header p{
  font-size: 12px;
  color: var(--muted);
}

.form-group{ margin-bottom: 12px; }
.form-group label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: rgba(234,240,255,.85);
  margin-bottom: 6px;
}

.form-group input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
}

.form-group input::placeholder{ color: rgba(234,240,255,.40); }
.form-group input:focus{ outline:none; border-color: rgba(39,181,255,.55); }

/* botón del login usa tu clase btn-primary */
.btn-primary{
  width: 100%;
  margin-top: 6px;
}

.demo{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(234,240,255,.70);
  line-height: 1.45;
}

/* responsive */
@media (max-width: 1000px){
  .stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .stats{ grid-template-columns: 1fr; }
  table{ min-width: 720px; }
}

