/* ---------- Admins page — extends style.css theme ---------- */

.breadcrumb{
  font-size:12.5px;
  color:var(--ink-soft);
  font-weight:500;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:8px;
}
.breadcrumb i{ font-size:9px; color:var(--gold-600); }

.topbar h1{
  font-size:30px;
  font-weight:600;
  color:var(--maroon-950);
}

/* ---------- Table toolbar ---------- */
.table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
.table-toolbar h2{
  font-size:20px;
  font-weight:600;
  color:var(--maroon-950);
}

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

.search-box.small{
  max-width:280px;
  padding:9px 14px;
}
.search-box.small input{
  border:none;
  outline:none;
  background:transparent;
  font-family:'Inter', sans-serif;
  font-size:13.5px;
  color:var(--ink);
  width:100%;
}
.search-box.small input::placeholder{ color:var(--ink-soft); }

.btn-outline{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--ink);
  padding:10px 16px;
  border-radius:10px;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.btn-outline:hover{ background:var(--cream); }

.btn-primary{
  display:flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(90deg, var(--maroon-900), var(--maroon-800));
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:10px;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(61,15,44,0.25);
}
.btn-primary:hover{ background: linear-gradient(90deg, var(--maroon-800), var(--maroon-900)); }

/* ---------- Table cells ---------- */
.admin-id{ font-weight:600; color:var(--maroon-900); }

.admin-cell{
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-avatar{
  width:32px; height:32px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700;
  font-family:'Cormorant Garamond', serif;
  color:#fff;
  flex-shrink:0;
}
.av-1{ background: linear-gradient(135deg, var(--maroon-800), var(--maroon-900)); }
.av-2{ background: linear-gradient(135deg, var(--green), #1f5c3a); }
.av-3{ background: linear-gradient(135deg, var(--blue), #2c4468); }
.av-4{ background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); }

.admin-name{ font-weight:600; color:var(--ink); }
.admin-email{ color:var(--ink-soft); }

.status-dot{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
}
.status-dot::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:currentColor;
}
.status-active{ background:var(--green-bg); color:var(--green); }
.status-inactive{ background:var(--red-bg); color:var(--red); }

.action-cell{
  display:flex;
  align-items:center;
  gap:8px;
}
.action-btn{
  width:32px; height:32px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center;
  font-size:12.5px;
  cursor:pointer;
}
.action-btn:hover{ background:var(--cream); color:var(--maroon-900); }
.action-btn.danger:hover{ color:var(--red); }

/* ---------- Add Admin Modal ---------- */
.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(43,10,31,0.55);
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}
.modal-overlay.open{
  display:flex;
}

.modal-card{
  background:var(--card);
  width:100%;
  max-width:440px;
  border-radius:var(--radius);
  box-shadow: 0 20px 50px rgba(43,10,31,0.28);
  overflow:hidden;
  animation: modalPop .18s ease;
}

@keyframes modalPop{
  from{ opacity:0; transform:translateY(10px) scale(.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}
.modal-head h2{
  font-size:20px;
  font-weight:600;
  color:var(--maroon-950);
}
.modal-close{
  width:32px; height:32px;
  border-radius:8px;
  border:none;
  background:var(--cream);
  color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  font-size:13px;
}
.modal-close:hover{ background:var(--red-bg); color:var(--red); }

.modal-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.form-group label{
  font-size:12.5px;
  font-weight:600;
  color:var(--ink);
}
.form-group input,
.form-group select{
  font-family:'Inter', sans-serif;
  font-size:13.5px;
  color:var(--ink);
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--cream);
  outline:none;
}
.form-group input::placeholder{ color:var(--ink-soft); }
.form-group input:focus,
.form-group select:focus{
  border-color:var(--gold-500);
  background:var(--card);
}
.form-group select{ cursor:pointer; }

.modal-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding:18px 22px;
  border-top:1px solid var(--line);
  background:var(--cream);
}
.modal-footer .btn-outline,
.modal-footer .btn-primary{
  padding:10px 20px;
}
/* ---------- View Admin Modal ---------- */
.view-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.view-row:last-child{ border-bottom:none; }
.view-label{
  font-size:12.5px;
  font-weight:600;
  color:var(--ink-soft);
}
.view-value{
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
  text-align:right;
}

/* ---------- History action button ---------- */
.action-btn.history-btn:hover{ color:var(--blue); }

/* ---------- Login/Logout History Modal ---------- */
.modal-card-wide{
  max-width:640px;
}
.modal-card-wide .modal-body{
  max-height:70vh;
  overflow-y:auto;
}
.modal-head h2{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.history-admin-name{
  font-size:13px;
  font-weight:600;
  color:var(--ink-soft);
}

/* Range tabs */
.history-tabs{
  display:flex;
  gap:4px;
  background:var(--cream);
  border-radius:12px;
  padding:4px;
  margin-bottom:18px;
}
.history-tab{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 10px;
  border:none;
  background:transparent;
  border-radius:9px;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:600;
  color:var(--ink-soft);
  cursor:pointer;
  white-space:nowrap;
}
.history-tab:hover{ color:var(--maroon-900); }
.history-tab.active{
  background:var(--card);
  color:var(--maroon-900);
  box-shadow:0 2px 8px rgba(43,10,31,0.12);
}

/* Filters */
.history-filters{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}
.filter-group{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.filter-group.full{ grid-column:1 / -1; }
.filter-group label{
  font-size:12.5px;
  font-weight:600;
  color:var(--ink);
}
.filter-group select,
.filter-group input{
  font-family:'Inter', sans-serif;
  font-size:13.5px;
  color:var(--ink);
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--cream);
  outline:none;
}
.filter-group select:focus,
.filter-group input:focus{
  border-color:var(--gold-500);
  background:var(--card);
}
.filter-group select{ cursor:pointer; }

.history-table{
  width:100%;
  border-collapse:collapse;
  margin-top:4px;
}
.history-table thead th{
  text-align:left;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--ink-soft);
  padding:0 0 10px 0;
  border-bottom:1px solid var(--line);
}
.history-table tbody td{
  font-size:13px;
  color:var(--ink);
  padding:11px 0;
  border-bottom:1px solid var(--line);
}
.history-table tbody tr:last-child td{ border-bottom:none; }
.history-table tbody td:first-child{
  font-weight:600;
  color:var(--maroon-900);
  width:28px;
}

.history-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  font-weight:700;
  padding:4px 10px;
  border-radius:20px;
}
.history-status::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:currentColor;
}
.history-status.ongoing{ background:var(--green-bg); color:var(--green); }

.history-empty{
  text-align:center;
  font-size:13px;
  color:var(--ink-soft);
  padding:24px 0 8px;
}

/* Footer: Cancel (left) + Export/Print (right) */
.history-footer{
  justify-content:space-between;
}
.history-footer-right{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Softer, less prominent export button */
.btn-subtle{
  background:transparent;
  border:1px solid var(--line);
  color:var(--ink-soft);
  font-weight:500;
  box-shadow:none;
  padding:8px 14px;
}
.btn-subtle:hover{
  background:var(--cream);
  color:var(--ink);
}

/* Export dropdown */
.export-wrap{ position:relative; }
.export-wrap .caret{ font-size:9px; margin-left:2px; }
.export-menu{
  display:none;
  position:absolute;
  bottom:calc(100% + 8px);
  right:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 12px 28px rgba(43,10,31,0.2);
  overflow:hidden;
  min-width:150px;
  z-index:20;
}
.export-menu.open{ display:block; }
.export-menu button{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  padding:10px 14px;
  border:none;
  background:none;
  font-family:'Inter', sans-serif;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  text-align:left;
}
.export-menu button:hover{ background:var(--cream); }
.export-menu button i{ width:14px; }
.export-menu button[data-type="pdf"] i{ color:#c0392b; }
.export-menu button[data-type="csv"] i{ color:#1f7a3d; }
.export-menu button[data-type="excel"] i{ color:#1e7d45; }
.brand-mark-img{
  width:42px;
  height:42px;
  object-fit:contain;
  flex-shrink:0;
  border-radius:50%;
  border:2px solid var(--gold-500);
  padding:2px;
  background:none;
}
.brand-name-img{
  height:20px;
  object-fit:contain;
  display:block;
}