/* ===== Top Bar (Header) ===== */
.topbar{
  background: var(--black);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px;
  gap:14px;
}

.topbar .left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logo-icon{
  width:34px !important;
  height:34px !important;
  object-fit:contain;
  display:block;
  flex:0 0 34px;
}

.topbar .title{
  font-weight:600;
  letter-spacing:.2px;
  white-space:nowrap;
}

.topbar .right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
}

.topbar .user{
  opacity:.9;
  font-size:13px;
  white-space:nowrap;
}

.topbar .logout{
  background: var(--red);
  color:#fff;
  padding:8px 14px;
  border-radius:10px;
  display:inline-block;
  white-space:nowrap;
}

@media(max-width:720px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .topbar .right{
    width:100%;
    justify-content:space-between;
  }
}

:root{
  --red:#871622;
  --black:#111;
  --bg:#f4f4f6;
  --card:#fff;
  --border:#e6e6e6;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Inter',Arial,sans-serif;
  background:var(--bg);
  color:#222;
}

a{color:var(--red);text-decoration:none}
a:hover{opacity:.85}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

.card{
  background:var(--card);
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  border:1px solid var(--border);
}

h1,h2,h3{
  margin:0 0 12px 0;
  font-weight:600;
}

input,select,textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  font-family:inherit;
  font-size:14px;
}

textarea{min-height:90px;resize:vertical}

button,.btn{
  padding:10px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:500;
}

.btn-primary{
  background:var(--red);
  color:#fff;
}

.btn-secondary{
  background:#eee;
  color:#000;
}

.btn-danger{
  background:#ffe0e0;
  color:#900;
}

.btn-success{
  background:#ddffdd;
  color:#064;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th{
  text-align:left;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#666;
  padding:10px;
  border-bottom:1px solid var(--border);
}

.table td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
}

.badge{
  padding:5px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:500;
}

.badge-active{background:#ddffdd;color:#064}
.badge-disabled{background:#ffe9e9;color:#900}
