:root{
  --bg:#08152f;
  --bg-soft:#0e2247;
  --surface:#13233d;
  --surface-2:#1b2a47;
  --surface-3:#0b1730;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);
  --text:#ffffff;
  --muted:rgba(255,255,255,.82);
  --muted-soft:rgba(255,255,255,.72);
  --pill:rgba(255,255,255,.08);
  --button:#ffffff;
  --button-text:#08152f;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius-xl:24px;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:14px;
  --radius-xs:12px;
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:18px;
  --space-5:20px;
  --space-6:24px;
  --space-7:28px;
  --space-8:32px;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

body{
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:Arial, sans-serif;
  padding:32px;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select{
  font:inherit;
}

h1{
  margin:0;
  font-size:42px;
  line-height:1.1;
}

h2{
  margin:0;
  line-height:1.2;
}

h3{
  margin:0;
  line-height:1.25;
}

p{
  margin:0;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.card,
.summary-card,
.login-card,
.error-card,
.room-card,
.task-card,
.reservation-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}

.card,
.summary-card,
.room-card,
.task-card,
.reservation-card{
  padding:22px;
}

.login-card,
.error-card{
  padding:28px;
}

.summary-card h2,
.card h2{
  margin-bottom:8px;
  font-size:26px;
}

.summary-card p,
.card p{
  opacity:.88;
  font-size:15px;
}

.rooms-grid,
.tasks-grid,
.reservations-list{
  display:grid;
  gap:18px;
}

.rooms-grid{
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
}

.tasks-grid{
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
}

.reservations-list{
  grid-template-columns:1fr;
}

.room-card h3,
.task-card h3,
.reservation-card h3{
  margin-bottom:12px;
  font-size:22px;
}

.room-type,
.badge,
.status{
  display:inline-block;
  margin-top:14px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--pill);
  font-size:13px;
}

.room-type{
  margin-top:0;
  margin-bottom:14px;
}

.room-meta,
.task-meta,
.reservation-meta{
  display:grid;
  gap:8px;
  font-size:15px;
  opacity:.92;
}

.reservation-meta{
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 18px;
  min-height:48px;
  border:none;
  border-radius:var(--radius-sm);
  background:var(--button);
  color:var(--button-text);
  font-weight:bold;
  cursor:pointer;
  transition:transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border-strong);
}

.empty-state{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  opacity:.92;
}

.field{
  margin-bottom:18px;
}

.field label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  opacity:.9;
}

.field input,
.field select,
select,
input[type="date"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"]{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface-3);
  color:var(--text);
  font-size:15px;
  outline:none;
}

.field input:focus,
.field select:focus,
select:focus,
input:focus{
  border-color:rgba(255,255,255,.25);
}

::placeholder{
  color:rgba(255,255,255,.5);
}

.login-wrapper{
  width:100%;
  max-width:420px;
}

.brand{
  text-align:center;
  margin-bottom:28px;
}

.brand h1{
  margin-bottom:8px;
}

.brand p{
  opacity:.85;
  font-size:15px;
}

.footer-text{
  margin-top:16px;
  text-align:center;
  font-size:14px;
  opacity:.75;
}

.footer-text a{
  text-decoration:none;
}

.error-card{
  width:100%;
  max-width:560px;
  margin:0 auto;
  text-align:center;
}

.error-code{
  font-size:72px;
  line-height:1;
  font-weight:bold;
  margin-bottom:14px;
}

.error-title{
  font-size:32px;
  margin-bottom:12px;
}

.error-description{
  margin-bottom:28px;
  font-size:16px;
  opacity:.85;
  line-height:1.6;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin-bottom:28px;
}

.kpi-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:22px;
}

.kpi-label{
  font-size:14px;
  opacity:.75;
  margin-bottom:8px;
}

.kpi-value{
  font-size:34px;
  font-weight:bold;
}

.two-column-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:18px;
  margin-bottom:28px;
}

.list-stack{
  display:grid;
  gap:0;
}

.list-item{
  padding:14px 0;
  border-bottom:1px solid var(--border);
}

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

.list-item-title{
  font-weight:bold;
  margin-bottom:6px;
}

.list-item-meta{
  font-size:14px;
  opacity:.82;
}

.inline-user-card{
  min-width:220px;
  padding:14px 18px;
  box-shadow:none;
}

.user-name{
  font-weight:bold;
}

.user-email{
  font-size:13px;
  opacity:.75;
}

.page-hero-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px;
  flex-wrap:wrap;
}

.section-title{
  margin-bottom:18px;
}

.link-card{
  display:block;
  color:inherit;
  text-decoration:none;
}

.link-card:hover{
  border-color:rgba(255,255,255,.16);
}

.center-screen{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

.gradient-screen{
  background:linear-gradient(135deg, var(--bg), var(--bg-soft));
}

.max-w-420{
  width:100%;
  max-width:420px;
}

.max-w-560{
  width:100%;
  max-width:560px;
}

.max-w-760{
  max-width:760px;
}

.max-w-880{
  max-width:880px;
}

.w-full{
  width:100%;
}

.mb-8{
  margin-bottom:8px;
}

.mb-12{
  margin-bottom:12px;
}

.mb-16{
  margin-bottom:16px;
}

.mb-18{
  margin-bottom:18px;
}

.mb-20{
  margin-bottom:20px;
}

.mb-24{
  margin-bottom:24px;
}

.mt-8{
  margin-top:8px;
}

.mt-16{
  margin-top:16px;
}

.mt-18{
  margin-top:18px;
}

.mt-20{
  margin-top:20px;
}

.opacity-75{
  opacity:.75;
}

.opacity-82{
  opacity:.82;
}

.opacity-85{
  opacity:.85;
}

.text-center{
  text-align:center;
}

.grid-form{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
}

@media (max-width: 768px){
  body{
    padding:20px;
  }

  h1{
    font-size:34px;
  }

  .card,
  .summary-card,
  .room-card,
  .task-card,
  .reservation-card,
  .kpi-card{
    padding:18px;
  }

  .login-card,
  .error-card{
    padding:22px;
  }

  .error-code{
    font-size:56px;
  }

  .error-title{
    font-size:28px;
  }

  .kpi-value{
    font-size:30px;
  }
}

/* ===== BRsys App V1 • patch front final ===== */

.app-shell{
  min-height:100vh;
}

.page-content{
  display:grid;
  gap:28px;
}

.topbar-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.eyebrow{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.68;
  margin-bottom:6px;
}

.page-hero-copy{
  flex:1;
  min-width:280px;
}

.page-hero-text{
  margin-top:8px;
  font-size:15px;
  opacity:.82;
}

.user-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pill);
  font-size:14px;
  font-weight:bold;
  flex-shrink:0;
}

.user-meta{
  display:grid;
  gap:4px;
}

.inline-user-card{
  display:flex;
  align-items:center;
  gap:12px;
}

.section-block{
  display:grid;
  gap:18px;
}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.section-heading h2{
  margin:0;
}

.btn-sm{
  min-height:42px;
  padding:10px 14px;
  font-size:14px;
}

.page-hero-card{
  align-items:stretch;
}

@media (max-width:768px){
  .page-content{
    gap:22px;
  }

  .section-heading{
    align-items:stretch;
  }

  .section-heading .btn{
    width:100%;
  }

  .inline-user-card{
    width:100%;
  }
}
