/* SuperBihar Employee ID System - Public Styles */
:root {
  --primary:   #00AEEF;
  --primary-d: #0091c9;
  --primary-l: #e6f7ff;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #f0f4f8;
  --white:     #ffffff;
  --success:   #22c55e;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--primary); text-decoration: none; }

/* === LOGIN PAGE === */
.sbeis-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00AEEF 0%, #005f85 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.sbeis-login-page::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.sbeis-login-page::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.sbeis-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
}
.sbeis-login-header { text-align: center; margin-bottom: 32px; }
.sbeis-login-header .logo-text { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.sbeis-login-header .subtitle  { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sbeis-login-header .portal-label {
  display: inline-block;
  background: var(--primary-l);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
}
.sbeis-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.sbeis-form-group label { font-size: 13px; font-weight: 600; }
.sbeis-form-group input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.sbeis-form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.12);
}
.sbeis-btn-full {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.sbeis-btn-full:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,174,239,0.35); }
.sbeis-alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.sbeis-alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.sbeis-alert-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--success); }

/* === PORTAL === */
.sbeis-portal-page { min-height: 100vh; background: var(--bg); }
.sbeis-portal-header {
  background: var(--primary);
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,174,239,0.3);
}
.sbeis-portal-header .brand { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.sbeis-portal-header .emp-welcome { font-size: 13px; color: rgba(255,255,255,0.85); }
.sbeis-portal-header a { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px; transition: background 0.2s; }
.sbeis-portal-header a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

.sbeis-portal-body { max-width: 960px; margin: 0 auto; padding: 32px 20px; }

.sbeis-profile-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.sbeis-profile-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  height: 110px;
  position: relative;
}
.sbeis-profile-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: #fff;
  border-radius: 18px 18px 0 0;
}
.sbeis-profile-content { padding: 0 28px 28px; position: relative; }
.sbeis-profile-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  object-fit: cover;
  margin-top: -50px;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.sbeis-profile-name  { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.sbeis-profile-role  { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.sbeis-profile-dept  { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sbeis-profile-id-badge {
  display: inline-block;
  background: var(--primary-l);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  border: 1.5px solid rgba(0,174,239,0.3);
  margin-bottom: 20px;
}
.sbeis-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 10px;
}
.status-active    { background: #dcfce7; color: #166534; }
.status-suspended { background: #fee2e2; color: #991b1b; }
.status-inactive  { background: #f1f5f9; color: var(--muted); }

.sbeis-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.sbeis-info-item { display: flex; flex-direction: column; gap: 3px; }
.sbeis-info-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.sbeis-info-value { font-size: 14px; font-weight: 500; color: var(--text); }

/* Action cards */
.sbeis-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.sbeis-action-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
}
.sbeis-action-card:hover { border-color: var(--primary); transform: translateY(-3px); text-decoration: none; }
.sbeis-action-card .action-icon { font-size: 36px; }
.sbeis-action-card .action-title { font-weight: 700; font-size: 15px; }
.sbeis-action-card .action-desc  { font-size: 12px; color: var(--muted); }

/* QR Card */
.sbeis-qr-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sbeis-qr-card img { width: 120px; height: 120px; border: 2px solid var(--border); border-radius: 10px; padding: 4px; }
.sbeis-qr-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sbeis-qr-info p  { font-size: 13px; color: var(--muted); }

/* === VERIFY PAGE === */
.sbeis-verify-page { min-height: 100vh; background: var(--bg); padding: 40px 20px; }
.sbeis-verify-container { max-width: 600px; margin: 0 auto; }
.sbeis-verify-header { text-align: center; margin-bottom: 32px; }
.sbeis-verify-header h1 { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.sbeis-verify-header p  { font-size: 14px; color: var(--muted); }
.sbeis-verify-search {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.sbeis-verify-search h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sbeis-search-row { display: flex; gap: 10px; }
.sbeis-search-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.sbeis-search-row input:focus { outline: none; border-color: var(--primary); }
.sbeis-search-btn {
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.sbeis-verify-result {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sbeis-verify-result-header {
  background: var(--primary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sbeis-verify-result-header .verified-icon { font-size: 24px; }
.sbeis-verify-result-header h3 { font-size: 16px; font-weight: 700; color: #fff; }
.sbeis-verify-result-body {
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sbeis-verify-photo {
  width: 100px; height: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.sbeis-verify-details { flex: 1; min-width: 200px; }
.sbeis-verify-details .emp-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sbeis-verify-details .emp-id   { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 8px; letter-spacing: 1px; }
.sbeis-verify-row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.sbeis-verify-row .vr-label { color: var(--muted); font-weight: 600; min-width: 90px; }
.sbeis-verify-not-found {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.sbeis-verify-not-found .nf-icon { font-size: 48px; margin-bottom: 16px; }
.sbeis-verify-not-found h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--danger); }
.sbeis-verify-not-found p  { font-size: 14px; color: var(--muted); }

/* Suspended warning */
.sbeis-suspended-banner {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid #fca5a5;
}

@media (max-width: 640px) {
  .sbeis-login-card { padding: 30px 22px; }
  .sbeis-portal-header { padding: 0 14px; }
  .sbeis-portal-body { padding: 20px 14px; }
  .sbeis-profile-content { padding: 0 18px 22px; }
  .sbeis-search-row { flex-direction: column; }
}
