*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:#f1f5f9;
  color:#1e293b;
}
.header{
  background:#0f172a;
  color:#fff;
  padding:16px 24px;
  font-size:20px;
  font-weight:600;
}
.container{
  max-width:1200px;
  margin:30px auto;
  padding:0 20px;
}
.card{
  background:#fff;
  border-radius:10px;
  padding:20px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  margin-bottom:20px;
}
.login-box{
  max-width:400px;
  margin:100px auto;
}
input,button{
  width:100%;
  padding:12px;
  margin-top:12px;
  border-radius:6px;
  font-size:15px;
}
input{
  border:1px solid #cbd5e1;
}
button{
  border:none;
  cursor:pointer;
  background:#2563eb;
  color:#fff;
  font-weight:600;
}
button.secondary{
  background:#dc2626;
}
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
  margin-bottom:30px;   /* 👈 SEARCH SE PEHLE SPACE */

}
.stat{
  padding:20px;
  border-radius:10px;
  background:#f8fafc;
  border-left:6px solid #2563eb;
}
.stat h2{margin:0;font-size:28px}
.stat p{margin:6px 0 0;color:#475569}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}
th,td{
  padding:12px;
  border-bottom:1px solid #e2e8f0;
  text-align:center;
  font-size:14px;
}
th{
  background:#f1f5f9;
}
.badge{
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}
.verified{background:#dcfce7;color:#166534}
.revoked{background:#fee2e2;color:#991b1b}
.actions button{
  width:auto;
  padding:6px 12px;
  font-size:13px;
}
.footer{
  text-align:center;
  padding:15px;
  font-size:13px;
  color:#64748b;
}

/* ===== PROFILE MENU ===== */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.profile{
  position:relative;
}

.avatar{
  cursor:pointer;
  background:#1e293b;
  color:#fff;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.profile-menu{
  position:absolute;
  right:0;
  top:48px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  padding:10px;
  width:180px;
  display:none;
  z-index:100;
}

.profile-menu p{
  margin:0;
  padding:8px;
  font-size:14px;
  color:#475569;
  border-bottom:1px solid #e5e7eb;
}

.profile-menu button{
  margin-top:8px;
  background:#dc2626;
  width:100%;
}

/* ===== MODERN HEADER ===== */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 24px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  box-shadow:0 4px 14px rgba(0,0,0,.15);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:600;
}

.logo{
  background:#2563eb;
  color:#fff;
  width:36px;
  height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

/* ===== PROFILE ===== */
.profile{
  position:relative;
}

.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#2563eb;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  cursor:pointer;
  transition:0.2s;
}

.avatar:hover{
  background:#1d4ed8;
}

.profile-menu{
  position:absolute;
  right:0;
  top:55px;
  background:#fff;
  width:220px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
  display:none;
  animation:fadeIn 0.2s ease;
  overflow:hidden;
  z-index:100;
}

.profile-info{
  padding:14px;
  border-bottom:1px solid #e5e7eb;
}

.profile-info strong{
  display:block;
  font-size:14px;
}

.profile-info small{
  font-size:12px;
  color:#64748b;
}

.logout-btn{
  width:100%;
  background:#dc2626;
  border:none;
  padding:12px;
  font-weight:600;
  cursor:pointer;
}

.logout-btn:hover{
  background:#b91c1c;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}

.logo-avatar{
  background:#fff;
  padding:4px;
}

.logo-avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:50%;
}

.logo-img{
  background:#fff;
  padding:4px;
}

.logo-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:8px;
}

/* ===== SEARCH WRAPPER ===== */
.search-wrapper{
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}

/* ===== SEARCH BAR ===== */
.search-bar{
  width:100%;
  max-width:900px;   /* 👈 CONTROLLED WIDTH */
  display:flex;
  gap:12px;
  align-items:center;
}

/* ===== SEARCH INPUT ===== */
.search-input{
  flex:1;
  display:flex;
  align-items:center;
  background:#fff;
  border:2px solid #e5e7eb;
  border-radius:10px;        /* thoda tight */
  padding:8px 12px;          /* 👈 HEIGHT KAM */
  box-shadow:0 3px 8px rgba(0,0,0,.04);
}


.search-input:focus-within{
  border-color:#2563eb;
  box-shadow:0 6px 14px rgba(37,99,235,.2);
}

.search-input .icon{
  font-size:18px;
  color:#64748b;
  margin-right:8px;
}

.search-input input{
  border:none;
  outline:none;
  width:100%;
  font-size:15px;
  background:transparent;
}

/* ===== STATUS DROPDOWN ===== */
.search-bar select{
  height:48px;                /* 👈 SAME HEIGHT */
  padding:0 14px;
  border-radius:12px;
  border:2px solid #e5e7eb;
  font-size:14px;
  background:#fff;
  cursor:pointer;
  transition:0.2s;
}

.search-bar select:hover{
  border-color:#2563eb;
}

/* ===== MOBILE FIX ===== */
@media(max-width:768px){
  .search-bar{
    flex-direction:column;
    align-items:stretch;
  }
}



/* ===== DELETE BUTTON (DANGER) ===== */
.delete-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
  border:none;
  padding:6px 12px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.25s ease;
  box-shadow:0 6px 14px rgba(239,68,68,0.35);
}

.delete-btn::before{
  content:"🗑";
  font-size:14px;
}

.delete-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(239,68,68,0.55);
  background:linear-gradient(135deg,#dc2626,#b91c1c);
}

.delete-btn:active{
  transform:scale(0.95);
}

/* ===== BULK ACTION BAR ===== */
.bulk-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  margin-bottom:18px;
  border-radius:14px;
  background:linear-gradient(135deg,#fff,#f8fafc);
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* Left text */
.bulk-left{
  font-size:14px;
  color:#475569;
  font-weight:500;
}

/* Bulk delete button */
.bulk-delete-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:12px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  background:linear-gradient(135deg,#dc2626,#b91c1c);
  color:#fff;
  transition:0.3s ease;
}

/* Hover */
.bulk-delete-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(220,38,38,0.45);
}

/* Disabled */
.bulk-delete-btn:disabled{
  opacity:0.45;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

/* Checkbox style */
.row-check,
#selectAll{
  width:16px;
  height:16px;
  cursor:pointer;
}

/* ===== ACTION COLUMN FIX ===== */
.actions{
  min-width:140px;
}

.action-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
}

.action-stack button{
  width:90px;
}


/* ===== ACTION COLUMN UI ===== */
.actions{
  min-width:150px;
}

.action-stack{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
}

.action-stack button{
  width:100px;
}


/* ===== PAGINATION ===== */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin-top:20px;
}

.pagination button{
  padding:8px 16px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:14px;
  cursor:pointer;
  transition:0.2s;
}

.pagination button:hover{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.pagination button:disabled{
  opacity:0.4;
  cursor:not-allowed;
}

#pageInfo{
  font-size:14px;
  font-weight:600;
  color:#334155;
}

/* ================= PAGINATION UI ================= */
/* ================= PAGINATION UI ================= */
.pagination-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin:30px 0 10px;
}

/* PREV / NEXT BUTTON */
.page-btn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:none;
  background:linear-gradient(135deg,#2563eb,#1e40af);
  color:#ffffff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.35s ease;
  box-shadow:
    0 8px 20px rgba(37,99,235,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.15);
  position:relative;
  overflow:hidden;
}

/* GLOW LAYER */
.page-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#3b82f6,#60a5fa,#2563eb);
  opacity:0;
  transition:0.35s;
  z-index:-1;
}

/* HOVER EFFECT */
.page-btn:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:
    0 14px 35px rgba(37,99,235,0.55),
    0 0 25px rgba(59,130,246,0.6);
}

.page-btn:hover::after{
  opacity:1;
}

/* ACTIVE CLICK */
.page-btn:active{
  transform:scale(0.95);
}

/* DISABLED STATE */
.page-btn:disabled{
  background:#e5e7eb;
  color:#9ca3af;
  box-shadow:none;
  cursor:not-allowed;
  transform:none;
}

/* PAGE INFO */
.page-info{
  padding:8px 20px;
  border-radius:999px;
  background:#f8fafc;
  font-size:14px;
  font-weight:600;
  color:#334155;
  box-shadow:inset 0 0 0 1px #e5e7eb;
}


/* ===== MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.modal-card{
  width:100%;
  max-width:420px;
  background:#fff;
  padding:30px;
  border-radius:16px;
  box-shadow:0 25px 60px rgba(0,0,0,0.3);
}

.modal-card h3{
  margin-bottom:20px;
  text-align:center;
  color:#0f172a;
}

.modal-card input{
  width:100%;
  padding:12px;
  margin-bottom:12px;
  border-radius:8px;
  border:1px solid #cbd5e1;
}

.modal-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

/* Change password button */
.change-pass-btn{
  width:100%;
  background:#2563eb;
  color:#fff;
  border:none;
  padding:10px;
  margin-bottom:8px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}

.change-pass-btn:hover{
  background:#1d4ed8;
}

.profile-action-btn{
  width:100%;
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid #e5e7eb;
  padding:10px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  margin-top:8px;
  transition:0.25s;
}

.profile-action-btn:hover{
  background:#e0e7ff;
  border-color:#2563eb;
  color:#1d4ed8;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;   /* 🔥 header se upar */
}

/* Modal Box */
.modal-box{
  width:100%;
  max-width:420px;
  background:#ffffff;
  padding:30px;
  border-radius:16px;
  box-shadow:0 25px 60px rgba(0,0,0,0.35);
  animation:popup 0.25s ease;
}

.modal-box h3{
  margin-top:0;
  text-align:center;
  color:#0f172a;
}

/* Inputs */
.modal-box input{
  width:100%;
  margin-top:12px;
  padding:12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:14px;
}

.modal-box input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

/* Actions */
.modal-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
  justify-content:flex-end;
}

/* Animation */
@keyframes popup{
  from{
    opacity:0;
    transform:scale(0.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* ===== CONTACT MESSAGE TABLE ===== */
.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th, td{
  padding:14px;
  text-align:left;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
}

th{
  background:#f8fafc;
  font-weight:600;
}

.badge-new{
  background:#dbeafe;
  color:#1d4ed8;
  padding:5px 10px;
  border-radius:14px;
  font-size:12px;
  font-weight:600;
}

.badge-read{
  background:#dcfce7;
  color:#166534;
  padding:5px 10px;
  border-radius:14px;
  font-size:12px;
  font-weight:600;
}

/* ACTION BUTTONS */
.action-btn{
  padding:6px 12px;
  border-radius:8px;
  border:none;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.view-btn{
  background:#2563eb;
  color:#fff;
}

.read-btn{
  background:#16a34a;
  color:#fff;
}

.delete-btn{
  background:#dc2626;
  color:#fff;
}

/* ===== MODAL ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.modal-box{
  background:#fff;
  width:100%;
  max-width:500px;
  border-radius:16px;
  padding:25px;
  box-shadow:0 20px 50px rgba(0,0,0,.3);
}

.modal-box h3{
  margin-bottom:10px;
}

.modal-box p{
  font-size:14px;
  color:#334155;
  line-height:1.6;
}

.modal-actions{
  margin-top:20px;
  text-align:right;
}

.btn-outline{
  padding:10px 18px;
  border-radius:10px;
  border:2px solid #2563eb;
  background:#fff;
  color:#2563eb;
  cursor:pointer;
}
