@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   B3 CLOUD COMMERCE - GLOBAL THEME
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --primary: #21AAE1;
  --primary-dark: #0088cd;
  --primary-light: rgba(33, 170, 225, 0.10);
  --primary-glow: rgba(33, 170, 225, 0.25);
  
  /* Dark Theme */
  --navy: #000000;
  --navy-mid: #1a1a1a;
  --navy-light: #2a2a2a;
  
  /* Light Theme */
  --bg: #FFFFFF;
  --bg-gray: #F2F8FB;
  --bg-card: #FFFFFF;
  
  /* Text Colors */
  --text: #222222;
  --text-muted: #555555;
  --text-dim: #888888;
  --text-light: #E8EDF2;
  --text-light-muted: #7A95B0;
  --text-light-dim: #4A6580;
  
  /* Status Colors */
  --success: #2ECC71;
  --danger: #E8523A;
  --warning: #F5A623;
  --gold: #F0A500;
  
  /* Borders & Effects */
  --border: rgba(0, 0, 0, 0.10);
  --border-light: rgba(255,255,255,0.08);
  --border-primary: rgba(33, 170, 225, 0.30);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.14);
  --radius: 10px;
  
  /* Dark Theme Cards */
  --card-dark: rgba(255,255,255,0.04);
  --card-dark-hover: rgba(255,255,255,0.07);

  /* Legacy aliases — keep old variable names working */
  --accent: #21AAE1;
  --accent-dark: #0088cd;
  --accent-dim: rgba(33,170,225,0.12);
  --accent-glow: rgba(33,170,225,0.3);
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --border-accent: rgba(33,170,225,0.3);
  --text-muted: #7A95B0;
  --text-dim: #4A6580;
  --text: #E8EDF2;
  --border: rgba(255,255,255,0.08);
  --gold: #F0A500;
}

/* ═══════════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif;
  line-height: 1.65;
  font-size: 15px;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all 0.3s ease-out;
  font-family: 'Figtree', sans-serif; border: none; text-decoration: none;
}
.btn-primary {
  background: var(--primary-dark); color: #fff;
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 15px var(--primary-glow);
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.25);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid #ddd; border-radius: 8px;
  font-family: 'Figtree', sans-serif; font-size: 14px;
  outline: none; transition: all 0.2s;
}
.form-input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.field-input {
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-family: 'Figtree', sans-serif;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.field-input::placeholder { color: var(--text-dim); }
.field-input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(232,82,58,0.12); }
.field-error { font-size: 11px; color: var(--danger); margin-top: 2px; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════════════════ */

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 12px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.status-active { background: rgba(46,204,113,0.15); color: var(--success); }
.status-active::before { background: var(--success); }
.status-pending { background: rgba(122,149,176,0.15); color: var(--text-muted); }
.status-pending::before { background: var(--text-muted); }
.status-deploying { background: rgba(33,170,225,0.15); color: var(--primary); }
.status-deploying::before { background: var(--primary); animation: pulse 1s ease-in-out infinite; }
.status-failed { background: rgba(232,82,58,0.15); color: var(--danger); }
.status-failed::before { background: var(--danger); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
