/* আইডি সার্ভিস পোর্টাল — Stylesheet */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Hind Siliguri','Noto Sans Bengali',system-ui,-apple-system,sans-serif; background: #f4f6f8; color: #1e293b; font-size: 14px; }
a { color: #0284c7; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; color: #0f172a; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.muted { color: #64748b; }
.text-center { text-align: center; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.alert-info { background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* Buttons */
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid transparent; background: #fff; color: #0f172a; cursor: pointer; font: inherit; font-weight: 600; transition: all .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,.08); }
.btn-primary { background: #0284c7; color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-danger  { background: #ef4444; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* Auth pages */
.auth-page { background: linear-gradient(135deg,#0ea5e9,#10b981); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card { background: #fff; padding: 32px; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; text-align: center; }
.auth-card .muted { text-align: center; margin-bottom: 18px; }
.auth-logo { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 12px; background: linear-gradient(135deg,#10b981,#0ea5e9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.install-page { background: #f4f6f8; }

/* Forms */
.form label { display: block; margin-bottom: 12px; font-weight: 500; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.15); }
.form.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form.grid-2 .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form.grid-2 { grid-template-columns: 1fr; } }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #fff; border-right: 1px solid #e2e8f0; overflow-y: auto; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #e2e8f0; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg,#10b981,#0ea5e9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.brand-name { font-weight: 700; font-size: 14px; }
.brand-sub { font-size: 10px; color: #64748b; }
.sidebar-nav { padding: 12px; }
.nav-section { margin-bottom: 16px; }
.nav-title { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 4px; margin-bottom: 4px; background: #f1f5f9; }
.nav-title.sky { color: #0284c7; }
.nav-title.orange { color: #ea580c; }
.nav-title.green { color: #059669; }
.nav-title.purple { color: #7c3aed; }
.nav-item { display: block; padding: 7px 12px; border-radius: 6px; color: #334155; font-size: 13px; margin-bottom: 2px; }
.nav-item:hover { background: #f1f5f9; text-decoration: none; }
.nav-item.active { background: #e0f2fe; color: #0369a1; font-weight: 600; }
.nav-item.logout { color: #dc2626; margin-top: 16px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 20px; gap: 12px; position: sticky; top: 0; z-index: 10; }
.menu-btn { display: none; background: #f1f5f9; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 18px; }
.balance-pill { background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 6px; font-weight: 700; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#0ea5e9,#10b981); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.content { flex: 1; padding: 20px; overflow-y: auto; }
.banner { background: #cffafe; border: 1px solid #67e8f9; color: #155e75; padding: 10px; border-radius: 6px; text-align: center; margin-bottom: 16px; font-size: 13px; }

/* Card / Panel */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.panel { padding: 20px; margin-bottom: 16px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.table th { background: #f8fafc; font-weight: 600; color: #475569; }
.kv th { width: 160px; color: #64748b; font-weight: 500; padding: 6px 10px; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-completed, .badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected, .badge-blocked { background: #fee2e2; color: #991b1b; }

/* Admin */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; font-weight: 600; font-size: 13px; }
.admin-tabs a.active { background: #0284c7; color: #fff; border-color: #0284c7; }

.inline { display: inline-flex; gap: 4px; align-items: center; }

/* Mobile */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; z-index: 50; box-shadow: 4px 0 12px rgba(0,0,0,.15); }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; }
}
