:root{
  --gold:#ff9f1c;
  --glass:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.08);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,sans-serif;
}

body{
  background:#050505;
  display:flex;
  min-height:100vh;
  color:#fff;
  position:relative;
  overflow-x:hidden;
}

/* =====================
   BACKGROUND PATTERN
===================== */
.bg-pattern{
  position:fixed;
  inset:0;
  background-image:radial-gradient(rgba(255,159,28,.15) 1px,transparent 1px);
  background-size:6px 6px;
  z-index:0;
  pointer-events:none;
}

/* =====================
   SIDEBAR
===================== */
.sidebar{
  width:250px;
  background:linear-gradient(180deg,#2a1408,#0c0603);
  padding:24px;
  display:flex;
  flex-direction:column;
  z-index:5;
}

.logo{
  width:180px;
  margin-bottom:30px;
}

.sidebar a{
  display:flex;
  gap:10px;
  padding:12px;
  margin-bottom:8px;
  text-decoration:none;
  color:#ccc;
  border-radius:12px;
  font-size:16px;
}

.sidebar a.active,
.sidebar a:hover{
  background:linear-gradient(135deg,#ff9f1c,#ff7a00);
  color:#000;
}

.sidebar-user{
  margin-top:auto;
  font-size:13px;
  opacity:.7;
}

/* =====================
   MAIN
===================== */
.main{
  flex:1;
  padding:28px;
  position:relative;
  z-index:5;
}

/* =====================
   GLASS EFFECT
===================== */
.glass{
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:20px;
  backdrop-filter:blur(20px);
}

/* =====================
   HEADER
===================== */
.header{
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.header h1{
  font-size:26px;
  letter-spacing:1px;
}

.header p{
  font-size:11px;
  color:var(--gold);
  letter-spacing:2px;
}

.profile{
  display:flex;
  align-items:center;
  gap:12px;
}

.profile img{
  width:40px;
  border-radius:12px;
  border:2px solid var(--gold);
}

.profile a{
  color:var(--gold);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}

.profile a:hover{
  text-decoration:underline;
}

.logout-btn{
  display:inline-block;
  margin-top:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#1a100d !important;
  text-decoration:none !important;
  background:linear-gradient(135deg,#ff9f1c,#ff7a00);
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 6px 14px rgba(255,122,0,.25);
}

.logout-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(255,122,0,.35);
}

/* =====================
   STATS
===================== */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;
  margin-bottom:24px;
}

.card{
  padding:20px;
}

.card span{
  font-size:12px;
  opacity:.7;
}

.card h2{
  margin-top:6px;
  font-size:24px;
}

.green h2{color:#00ff88}
.blue h2{color:#00a3ff}
.yellow h2{color:#ffcc00}
.red h2{color:#ff5555}

/* =====================
   ACTION BAR
===================== */
.action-bar{
  padding:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.action-bar input,
.action-bar select{
  background:#111;
  border:1px solid var(--border);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  outline:none;
}

.btn-primary{
  background:linear-gradient(135deg,#ff9f1c,#ff7a00);
  padding:12px 20px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  color:#000;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
}

/* =====================
   TABLE
===================== */
.table-card{
  padding:20px;
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,td{
  padding:14px 16px;
  font-size:13px;
  white-space:nowrap;
}

th{
  color:#ffcc80;
  text-align:left;
  font-weight:600;
}

tbody tr{
  border-top:1px solid var(--border);
}

tbody tr:hover{
  background:rgba(255,255,255,.04);
}

/* =====================
   STATUS TAGS
===================== */
.status{
  padding:6px 12px;
  border-radius:20px;
  font-size:11px;
  font-weight:700;
}

.active{background:#0f5132;color:#00ff88}
.completed{background:#3e2f00;color:#ffcc00}
.new{background:#003f5c;color:#00a3ff}
.hold{background:#3e2f00;color:#ffcc00}
.inactive{background:#4f1515;color:#ff6b6b}

/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width:900px){

  body{
    flex-direction:column;
  }

  .sidebar{
    display:none;
  }

  .main{
    padding:16px;
  }

  .header{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    position:sticky;
    top:0;
    z-index:10;
  }

  .header h1{
    font-size:20px;
  }

  .profile{
    width:100%;
    justify-content:space-between;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);
  }

  .card{
    padding:14px;
  }

  .card h2{
    font-size:20px;
  }

  .action-bar{
    flex-direction:column;
  }

  .action-bar input,
  .action-bar select,
  .btn-primary{
    width:100%;
  }

  table{
    font-size:12px;
  }
}

/* =====================
   EXTRA SMALL DEVICES
===================== */
@media (max-width:480px){

  .stats{
    grid-template-columns:1fr;
  }

  th,td{
    padding:10px 12px;
  }

  .header p{
    font-size:10px;
  }
}
.action-col{
  text-align:center;
}

.icon-btn{
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  color:#ffcc80;
}

.icon-btn:hover{
  background:linear-gradient(135deg,#ff9f1c,#ff7a00);
  color:#000;
}

.status-select{
  margin-left:8px;
  background:#111;
  border:1px solid var(--border);
  color:#fff;
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
}

/* Final device QA overrides */
@media (max-width: 768px){
  .table-card{
    padding:14px;
    border-radius:16px;
  }

  table{
    min-width:860px;
  }
}

@media (max-width: 390px){
  .main{
    padding:12px;
  }

  .header{
    padding:14px;
    border-radius:16px;
  }

  .stats{
    grid-template-columns:1fr;
    gap:10px;
  }

  .action-col{
    min-width:150px;
  }

  .status-select{
    margin-left:0;
    margin-top:8px;
    width:100%;
  }
}


