/* ======================================================
   PhotoBox UI System
   Version: 1.0
   Purpose: Shared visual language across all pages
   ====================================================== */

/* ---------- CSS RESET (minimal) ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: #f5f6f8;
  color: #1f2937;
  line-height: 1.6;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand */
  --brand-primary: #2563eb;

  /* Neutrals */
  --bg-page: #f5f6f8;
  --bg-surface: #ffffff;
  --border-light: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;

  /* States */
  --success: #16a34a;
  --danger: #dc2626;

  /* Spacing (8px rhythm) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.06);
}

/* ---------- TYPOGRAPHY ---------- */
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3);
}

/* ---------- HEADER ---------- */
.pb-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.pb-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pb-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-primary);
  text-decoration: none;
}

.pb-header-center {
  font-weight: 500;
  color: var(--text-secondary);
}

.pb-header-actions {
  display: flex;
  gap: var(--space-2);
}

/* ---------- BUTTONS ---------- */
.btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #f9fafb;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

/* ---------- UTILITIES ---------- */
.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
