/* Vewor Vault Admin Hub - Clean Operator Interface */
:root {
  --bg-admin: #f1f5f9;
  --bg-sidebar: #0f172a;
  --bg-panel: #ffffff;
  --border-admin: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-green: #16a34a;
  --accent-blue: #0284c7;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background: var(--bg-admin); color: var(--text-main); line-height: 1.5; }

/* Admin Layout */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--bg-sidebar); color: #ffffff; padding: 24px 16px; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { font-size: 16px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 32px; padding: 0 12px; }
.sidebar-brand span { color: #38bdf8; }
.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #94a3b8; text-decoration: none; }
.nav-menu a:hover, .nav-menu a.active { background: #1e293b; color: #ffffff; }

.main-content { flex-grow: 1; padding: 32px; overflow-y: auto; }
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-heading { font-size: 22px; font-weight: 800; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border-admin); border-radius: 6px; padding: 20px; }
.stat-label { font-size: 12px; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text-main); margin-top: 6px; }

/* Panels & Tables */
.panel { background: var(--bg-panel); border: 1px solid var(--border-admin); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border-admin); display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-size: 15px; font-weight: 700; }

.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8fafc; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-admin); }
td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border-admin); vertical-align: middle; }
tr:hover td { background: #f8fafc; }

/* Badges */
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-verified { background: #dcfce7; color: #15803d; }
.badge-shipped { background: #e0e7ff; color: #4338ca; }
.badge-delivered { background: #dcfce7; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 4px; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: #0f172a; color: #ffffff; }
.btn-primary:hover { background: #1e293b; }
.btn-outline { background: #ffffff; border: 1px solid var(--border-admin); color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; }
.btn-success { background: #16a34a; color: #ffffff; }
.btn-sm { padding: 4px 8px; font-size: 11px; }

/* Filter Tabs */
.tab-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { padding: 8px 14px; background: #ffffff; border: 1px solid var(--border-admin); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.tab-btn.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-window { background: #ffffff; border-radius: 6px; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* Address Formatter Clipboard Card */
.copy-clipboard-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 4px; padding: 14px; font-family: monospace; font-size: 13px; white-space: pre-wrap; margin: 12px 0; color: #0f172a; }

/* Form Styles */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border-admin); border-radius: 4px; font-size: 13px; }
