/* ══════════════════════════════════════════════════════════════
   Brothers Skills – Global Custom Styles
   Brand: Blue #1B6FB8 | Orange #F57B22
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #1B6FB8;
  --primary-dark:   #0E5193;
  --primary-light:  #EBF5FF;
  --secondary:      #F57B22;
  --secondary-dark: #D4671A;
  --secondary-light:#FFF4EC;
  --accent:         #F57B22;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --dark:           #0A1628;
  --navy:           #0A1628;
  --sidebar-bg:     #0A1628;
  --sidebar-w:      260px;
}

/* ── Gradient Text ─────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, #1B6FB8 0%, #F57B22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Orange CTA Button ─────────────────────────────────────── */
.btn-grad {
  background: linear-gradient(135deg, #F57B22, #D4671A);
  color: #fff;
  border: none;
  transition: all .2s ease;
}
.btn-grad:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(245,123,34,.35); }

/* ── Blue Button ───────────────────────────────────────────── */
.btn-blue {
  background: linear-gradient(135deg, #1B6FB8, #0E5193);
  color: #fff;
  border: none;
  transition: all .2s ease;
}
.btn-blue:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(27,111,184,.35); }

/* ── Glass Navbar ──────────────────────────────────────────── */
.glass-nav {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27,111,184,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

/* ── Footer Link ───────────────────────────────────────────── */
.footer-link {
  color: #94a3b8;
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: #F57B22; }

/* ── Glass Card ────────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Admin Sidebar ─────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.admin-main { margin-left: var(--sidebar-w); }

.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; border-radius: .5rem;
  color: #94a3b8; font-size: .875rem; font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
.nav-item.active { background: linear-gradient(135deg, #1B6FB8, #F57B22); color: #fff; }
.sidebar-section {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #475569;
  padding: .5rem 1rem .25rem;
}

/* ── Status Badges ─────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ── Card hover lift ───────────────────────────────────────── */
.card-lift { transition: box-shadow .2s, transform .2s; }
.card-lift:hover { box-shadow: 0 20px 40px rgba(0,0,0,.12); transform: translateY(-3px); }

/* ── Progress bar ──────────────────────────────────────────── */
.progress-track { background: #e2e8f0; border-radius: 9999px; height: 8px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #1B6FB8, #F57B22); transition: width .6s ease; }

/* ── Toast ─────────────────────────────────────────────────── */
#toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; border-radius: .75rem; min-width: 280px; max-width: 380px; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toastIn .3s ease; font-size: .875rem; font-weight: 500; }
.toast.success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.toast.error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.toast.info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.toast.warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(40px); } }

/* ── Loading spinner ───────────────────────────────────────── */
.spinner { width: 20px; height: 20px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Certificate card preview ──────────────────────────────── */
.cert-card {
  background: linear-gradient(135deg, #EBF5FF 0%, #dbeafe 40%, #FFF4EC 100%);
  border: 2px solid #1B6FB8;
  border-radius: 1rem;
  padding: 2rem;
  color: #0A1628;
  font-family: 'Georgia', serif;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231B6FB8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Section divider ───────────────────────────────────────── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #1B6FB8, #F57B22);
  border-radius: 9999px;
  width: 64px;
}

/* ── Course card hover ─────────────────────────────────────── */
.course-card { transition: transform .3s ease, box-shadow .3s ease; }
.course-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(27,111,184,.2); }

/* ── Responsive sidebar ────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* ── Step wizard ───────────────────────────────────────────── */
.step-indicator .step { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; transition: all .3s; }
.step-indicator .step.active  { background: linear-gradient(135deg, #1B6FB8, #F57B22); color: #fff; box-shadow: 0 0 0 4px rgba(27,111,184,.25); }
.step-indicator .step.done    { background: #10b981; color: #fff; }
.step-indicator .step.pending { background: #e2e8f0; color: #94a3b8; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Login tabs ────────────────────────────────────────────── */
.login-tab {
  padding: .6rem 1.25rem;
  border-radius: .5rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  color: #64748b;
  background: transparent;
}
.login-tab.active {
  background: linear-gradient(135deg, #1B6FB8, #F57B22);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27,111,184,.3);
}
.login-tab:not(.active):hover {
  border-color: #1B6FB8;
  color: #1B6FB8;
}

/* ── Hero animations ───────────────────────────────────────── */
@keyframes floatUp   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY( 10px)} }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 0 rgba(245,123,34,.5)} 100%{box-shadow:0 0 0 14px rgba(245,123,34,0)} }
@keyframes spin-slow  { to{transform:rotate(360deg)} }
.float-up   { animation: floatUp   3.5s ease-in-out infinite; }
.float-down { animation: floatDown 4s   ease-in-out infinite; }
.pulse-ring { animation: pulse-ring 2s ease-out infinite; }
.spin-slow  { animation: spin-slow 8s linear infinite; }

/* ── Brand glow orbs ───────────────────────────────────────── */
.orb-blue   { background: rgba(27,111,184,.15); filter: blur(60px); }
.orb-orange { background: rgba(245,123,34,.12); filter: blur(60px); }
