/* Marvel Bot — App Owner Dashboard */
#owner-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f4f5fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.owner-sidebar {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  color: #e0e7ff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
}

.owner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}

.owner-brand-icon {
  width: 42px; height: 42px;
  background: rgba(99,102,241,.35);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
}

.owner-brand-title { font-weight: 700; font-size: 16px; color: #fff; }
.owner-brand-sub { font-size: 11.5px; color: #a5b4fc; margin-top: 2px; }

.owner-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.owner-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: none; border-radius: 10px;
  background: transparent; color: #c7d2fe;
  font-size: 14px; font-weight: 500; cursor: pointer;
  text-align: left; transition: all .15s;
}
.owner-nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.owner-nav-btn.active { background: rgba(99,102,241,.45); color: #fff; }
.owner-nav-btn i { font-size: 18px; }

.owner-sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.owner-user-chip {
  font-size: 12.5px; color: #a5b4fc;
  padding: 10px 12px; background: rgba(0,0,0,.15);
  border-radius: 10px; line-height: 1.4;
}
.owner-user-chip strong { color: #fff; display: block; font-size: 13.5px; }

.owner-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; background: transparent;
  color: #c7d2fe; cursor: pointer; font-size: 13px;
}
.owner-logout:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3); color: #fecaca; }

.owner-main { display: flex; flex-direction: column; min-width: 0; }

.owner-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky; top: 0; z-index: 10;
}
.owner-topbar h1 { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0; }

.owner-content { padding: 24px 28px 40px; flex: 1; }

.owner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.owner-stat {
  background: #fff; border-radius: 14px; padding: 20px;
  border: 1px solid #ececf1;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.owner-stat-label { font-size: 12.5px; color: #64748b; margin-bottom: 6px; }
.owner-stat-value { font-size: 28px; font-weight: 700; color: #0f172a; }
.owner-stat-value.warn { color: #d97706; }
.owner-stat-value.ok { color: #16a34a; }

.owner-card {
  background: #fff; border-radius: 14px; border: 1px solid #ececf1;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  margin-bottom: 20px; overflow: hidden;
}
.owner-card-head {
  padding: 18px 22px; border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.owner-card-head h2 { font-size: 16px; font-weight: 600; margin: 0; color: #0f172a; }
.owner-card-body { padding: 18px 22px; }

.owner-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.owner-tab {
  padding: 8px 14px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; font-size: 13px; cursor: pointer; color: #64748b;
}
.owner-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }

.owner-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.owner-table th {
  text-align: left; padding: 10px 12px; color: #64748b;
  font-weight: 500; font-size: 12px; border-bottom: 1px solid #f1f5f9;
}
.owner-table td { padding: 14px 12px; border-bottom: 1px solid #f8fafc; vertical-align: middle; }
.owner-table tr:hover td { background: #fafbff; }

.owner-badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
}
.owner-badge.pending { background: #fef3c7; color: #b45309; }
.owner-badge.approved { background: #dcfce7; color: #15803d; }
.owner-badge.rejected { background: #fee2e2; color: #b91c1c; }

.owner-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.owner-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.owner-btn:hover { background: #f8fafc; }
.owner-btn.approve { background: #ecfdf5; border-color: #86efac; color: #15803d; }
.owner-btn.reject { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.owner-btn.delete { background: #fff; color: #dc2626; }
.owner-btn.primary { background: #6366f1; border-color: #6366f1; color: #fff; }

.owner-form-row { margin-bottom: 16px; }
.owner-form-row label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 6px; }
.owner-form-row input {
  width: 100%; max-width: 320px; padding: 10px 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px;
}
.owner-form-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.owner-empty { text-align: center; padding: 40px 20px; color: #94a3b8; }
.owner-empty i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .5; }

.owner-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.owner-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
}
.owner-modal-head { padding: 20px 22px; border-bottom: 1px solid #f1f5f9; font-weight: 600; font-size: 16px; }
.owner-modal-body { padding: 20px 22px; }
.owner-modal-foot { padding: 16px 22px; border-top: 1px solid #f1f5f9; display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 900px) {
  #owner-app { grid-template-columns: 1fr; }
  .owner-sidebar { flex-direction: row; flex-wrap: wrap; padding: 16px; }
  .owner-nav { flex-direction: row; width: 100%; overflow-x: auto; }
  .owner-sidebar-foot { width: 100%; flex-direction: row; }
}
