/* =====================================================
   FlyTripVisa Admin — Shared Stylesheet
   Matches index.html brand style:
   dark theme, black background, green #07c160 accent,
   glassmorphism cards, mobile-first responsive layout.
   ===================================================== */

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;outline:none!important}

html,body{width:100%;min-height:100%}

body{
  background:#111111;
  color:#eaeaea;
  font-size:15px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.4;
}

a,button{text-decoration:none;-webkit-tap-highlight-color:transparent}
ul{list-style:none}
input,select,textarea{font-family:inherit}

@keyframes show{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.7}}

/* ==================== GLASS CARD ==================== */
.glass{
  background:rgba(26,26,26,.72);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(0,0,0,.5);
  animation:show .35s both;
}

/* ==================== AUTH PAGES ==================== */
.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:
    radial-gradient(600px 300px at 20% 0%,rgba(7,193,96,.10),transparent),
    radial-gradient(600px 300px at 80% 100%,rgba(7,193,96,.08),transparent),
    #000;
}
.auth-card{
  width:100%;
  max-width:400px;
  padding:32px 26px;
}
.auth-logo{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}
.auth-logo img{height:56px;object-fit:contain}
.auth-title{
  text-align:center;
  font-size:20px;
  font-weight:700;
  color:#fff;
  margin-bottom:4px;
}
.auth-sub{
  text-align:center;
  font-size:12.5px;
  color:#a1a1a1;
  margin-bottom:22px;
}
.form-group{margin-bottom:14px}
.form-group label{
  display:block;
  font-size:11.5px;
  font-weight:700;
  color:#cfcfcf;
  margin-bottom:6px;
  letter-spacing:.3px;
}
.form-group input{
  width:100%;
  height:44px;
  background:#111;
  border:1px solid #333;
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
  color:#fff;
  transition:border .2s;
  -webkit-appearance:none;
}
.form-group input::placeholder{color:#777}
.form-group input:focus{border-color:#07c160}
.form-group input.invalid{border-color:#ff4444}
.field-error{
  display:none;
  font-size:11px;
  color:#ff6b6b;
  margin-top:5px;
}
.field-error.show{display:block}
.btn-primary{
  width:100%;
  height:46px;
  background:#07c160;
  color:#fff;
  border:none;
  border-radius:12px;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s,transform .1s;
  margin-top:6px;
}
.btn-primary:hover{background:#059c4d}
.btn-primary:active{transform:scale(.98)}
.btn-primary:disabled{opacity:.6;cursor:not-allowed}
.auth-alt{
  text-align:center;
  font-size:12.5px;
  color:#a1a1a1;
  margin-top:18px;
}
.auth-alt a{color:#07c160;font-weight:700}
.auth-alt a:hover{text-decoration:underline}
.auth-msg{
  display:none;
  background:rgba(255,68,68,.12);
  border:1px solid rgba(255,68,68,.4);
  color:#ff8888;
  font-size:12px;
  padding:9px 12px;
  border-radius:10px;
  margin-bottom:14px;
}
.auth-msg.show{display:block}
.auth-msg.success{
  background:rgba(7,193,96,.12);
  border-color:rgba(7,193,96,.4);
  color:#4ade80;
}
.pw-strength{
  height:4px;
  border-radius:4px;
  background:#222;
  margin-top:8px;
  overflow:hidden;
}
.pw-strength span{
  display:block;
  height:100%;
  width:0;
  border-radius:4px;
  transition:width .3s,background .3s;
}

/* ==================== DASHBOARD LAYOUT ==================== */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 16px;
  background:rgba(10,10,10,.9);
  border-bottom:1px solid #1a1a1a;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}
.topbar-left img{height:34px;object-fit:contain}
.topbar-title{font-size:14px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-right{display:flex;align-items:center;gap:8px}
.avatar{
  width:34px;height:34px;
  border-radius:50%;
  background:#07c160;
  color:#fff;
  font-weight:700;
  font-size:14px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.hamburger{
  width:38px;height:38px;
  border-radius:10px;
  background:#1a1a1a;
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size:16px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.hamburger:hover{background:#2a2a2a}

.layout{display:flex;min-height:calc(100vh - 55px)}

.sidebar{
  position:fixed;
  top:55px;bottom:0;left:0;
  width:240px;
  background:#0a0a0a;
  border-right:1px solid #1a1a1a;
  padding:14px 10px;
  z-index:90;
  transform:translateX(-100%);
  transition:transform .25s ease;
  overflow-y:auto;
}
.sidebar.open{transform:translateX(0)}
.sidebar-overlay{
  position:fixed;
  inset:0;top:55px;
  background:rgba(0,0,0,.6);
  z-index:80;
  display:none;
}
.sidebar-overlay.show{display:block;animation:fadeIn .2s}
.nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:12px;
  color:#bdbdbd;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
  margin-bottom:4px;
}
.nav-item i{width:18px;text-align:center;font-size:14px}
.nav-item:hover{background:#1a1a1a;color:#fff}
.nav-item.active{background:rgba(7,193,96,.14);color:#07c160;border:1px solid rgba(7,193,96,.3)}
.nav-section{
  font-size:10px;
  font-weight:700;
  color:#666;
  letter-spacing:1px;
  text-transform:uppercase;
  margin:14px 10px 8px;
}

.content{
  flex:1;
  padding:18px 16px;
  min-width:0;
}
@media(min-width:1024px){
  .sidebar{transform:translateX(0);position:sticky}
  .hamburger{display:none}
  .content{margin-left:0;padding:22px 26px}
}

/* ==================== METRICS ==================== */
.page-head{margin-bottom:16px}
.page-head h1{font-size:19px;font-weight:700;color:#fff}
.page-head p{font-size:12.5px;color:#a1a1a1;margin-top:3px}
.metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-bottom:18px;
}
@media(min-width:768px){.metrics{grid-template-columns:repeat(4,1fr)}}
.metric-card{padding:16px}
.metric-icon{
  width:38px;height:38px;
  border-radius:10px;
  background:rgba(7,193,96,.14);
  color:#07c160;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;
  margin-bottom:10px;
}
.metric-value{font-size:22px;font-weight:800;color:#fff}
.metric-label{font-size:11px;color:#a1a1a1;margin-top:2px}
.metric-delta{font-size:10.5px;margin-top:6px;font-weight:700}
.metric-delta.up{color:#4ade80}
.metric-delta.down{color:#ff6b6b}

/* ==================== TABLES ==================== */
.panel{padding:16px;margin-bottom:16px;overflow:hidden}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.panel-head h2{font-size:14.5px;font-weight:700;color:#fff}
.panel-head .btn-sm{
  background:#07c160;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:7px 14px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.btn-sm.ghost{background:#1a1a1a;border:1px solid rgba(255,255,255,.14)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;min-width:520px}
th{
  text-align:left;
  font-size:10.5px;
  font-weight:700;
  color:#888;
  text-transform:uppercase;
  letter-spacing:.6px;
  padding:9px 10px;
  border-bottom:1px solid #262626;
  white-space:nowrap;
}
td{
  font-size:12.5px;
  color:#ddd;
  padding:11px 10px;
  border-bottom:1px solid #1e1e1e;
  white-space:nowrap;
}
tbody tr:hover td{background:#161616}
.tag{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  padding:3px 9px;
  border-radius:10px;
  text-transform:uppercase;
}
.tag.active{background:rgba(7,193,96,.15);color:#4ade80}
.tag.pending{background:rgba(245,166,35,.15);color:#f5a623}
.tag.blocked{background:rgba(255,68,68,.15);color:#ff6b6b}
.row-actions button{
  background:none;
  border:none;
  color:#888;
  cursor:pointer;
  font-size:13px;
  padding:4px 6px;
  transition:.15s;
}
.row-actions button:hover{color:#07c160}
.row-actions button.danger:hover{color:#ff6b6b}

/* ==================== MISC ==================== */
.custom-toast{
  position:fixed;
  bottom:25px;left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.9);
  color:#fff;
  padding:10px 18px;
  border-radius:20px;
  font-size:12px;
  z-index:9999;
  opacity:0;
  transition:.3s;
  pointer-events:none;
  max-width:90vw;
  text-align:center;
}
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.7);
  z-index:500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  backdrop-filter:blur(4px);
}
.modal-overlay.show{display:flex;animation:fadeIn .2s}
.modal{width:100%;max-width:420px;padding:24px}
.modal h3{color:#fff;font-size:16px;margin-bottom:6px}
.modal p{color:#a1a1a1;font-size:12.5px;margin-bottom:16px}
.modal-actions{display:flex;gap:10px;margin-top:8px}
.modal-actions .btn-primary{margin-top:0}
.btn-cancel{
  flex:1;height:46px;
  background:#1a1a1a;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
.btn-cancel:hover{background:#2a2a2a}
