/* ============================================================
   ADVEIE.COM - Academic Journal Platform Stylesheet
   Enterprise Academic Theme with Animations
   ============================================================ */

/* ---- Variables ---- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #1976D2;
  --secondary: #37474F;
  --accent: #00BCD4;
  --success: #2E7D32;
  --warning: #F57F17;
  --danger: #C62828;
  --info: #0277BD;
  --light: #F8F9FA;
  --dark: #1A1A2E;
  --text: #2C3E50;
  --muted: #6C757D;
  --border: #DEE2E6;
  --card-shadow: 0 4px 20px rgba(0,0,0,.08);
  --hover-shadow: 0 8px 40px rgba(21,101,192,.15);
  --gradient-primary: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  --gradient-accent: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--muted) !important; }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--gradient-dark);
  color: rgba(255,255,255,.85);
  padding: 7px 0;
  font-size: 0.78rem;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--accent); }

/* ---- Header ---- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(21,101,192,.15);
}
.navbar-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.navbar-brand .logo-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ---- Navigation ---- */
.main-nav .nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.main-nav .nav-link:hover { color: var(--primary) !important; }
.main-nav .nav-link:hover::after { left: 10%; right: 10%; }
.main-nav .nav-link.active { color: var(--primary) !important; }

.dropdown-menu {
  border: 0;
  box-shadow: var(--hover-shadow);
  border-radius: var(--radius);
  animation: dropDown .2s ease;
  min-width: 200px;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item { font-size: 0.875rem; padding: .6rem 1.25rem; border-radius: 6px; transition: var(--transition); }
.dropdown-item:hover { background: #EEF4FF; color: var(--primary); }

/* ---- HERO SECTION ---- */
.hero-section {
  background: var(--gradient-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,188,212,.15);
  border: 1px solid rgba(0,188,212,.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp .5s ease .2s both;
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp .5s ease .4s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #00E5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  animation: fadeInUp .5s ease .6s both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp .5s ease .8s both;
}
.hero-stat { text-align: center; }
.hero-stat .value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp .5s ease .7s both;
}

/* Floating card in hero */
.hero-journal-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  animation: float 6s ease-in-out infinite, fadeInRight .5s ease .5s both;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Buttons ---- */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .4s, height .4s;
}
.btn:active::after { width: 200px; height: 200px; }

.btn-primary {
  background: var(--gradient-primary);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 15px rgba(21,101,192,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21,101,192,.5);
  color: #fff;
}
.btn-outline-light { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-accent {
  background: var(--gradient-accent);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,188,212,.4);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,188,212,.5); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ---- Section styles ---- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin: 1rem auto;
}

/* ---- Cards ---- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--dark);
  padding: 1rem 1.25rem;
}

/* Article cards */
.article-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary);
}
.article-card .article-type-badge {
  display: inline-block;
  background: #EEF4FF;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 0.5rem;
}
.article-card .article-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-title:hover { color: var(--primary); }
.article-card .article-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.article-card .article-abstract {
  font-size: 0.86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.article-card .article-stats span {
  font-size: 0.75rem;
  color: var(--muted);
}
.article-card .oa-badge {
  background: #E8F5E9;
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* ---- Stats section ---- */
.stats-section { background: var(--gradient-primary); color: #fff; padding: 60px 0; }
.stat-box { text-align: center; padding: 1.5rem; }
.stat-box .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
}
.stat-box .label { font-size: 0.85rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .5px; }

/* ---- Features grid ---- */
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  background: #fff;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--hover-shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, rgba(21,101,192,.08), rgba(21,101,192,.15));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* ---- Discipline tags ---- */
.discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f0f4ff;
  color: var(--primary);
  border: 1px solid rgba(21,101,192,.2);
  transition: var(--transition);
  cursor: pointer;
}
.discipline-pill:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(21,101,192,.3);
}

/* ---- Search bar ---- */
.search-hero {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.search-form .form-control {
  border-radius: 8px 0 0 8px;
  border: 2px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(21,101,192,.15);
}
.search-form .btn { border-radius: 0 8px 8px 0; padding: 0.75rem 1.5rem; }

/* ---- Editorial board card ---- */
.editor-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.editor-card:hover { border-color: var(--primary); box-shadow: var(--hover-shadow); }
.editor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 1rem;
}
.editor-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.editor-title { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.editor-institution { font-size: 0.78rem; color: var(--muted); }

/* ---- Issue display ---- */
.issue-card {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.issue-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

/* ---- Admin/Dashboard nav ---- */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--gradient-dark);
  color: #fff;
  position: fixed;
  left: 0; top: 0;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand .brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.sidebar-brand .brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sidebar-menu { padding: 1rem 0; }
.sidebar-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.35);
  padding: 1rem 1.5rem .5rem;
  font-weight: 700;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .6rem 1.5rem;
  color: rgba(255,255,255,.75) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.sidebar-link.active {
  background: rgba(21,101,192,.5);
  color: #fff !important;
  border-left: 3px solid var(--accent);
}
.sidebar-link .badge {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 7px;
}
.sidebar-link svg, .sidebar-link i { font-size: 1rem; opacity: .8; }

/* Dashboard main content */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  background: #F0F4F8;
  transition: var(--transition);
}
.top-navbar {
  background: #fff;
  padding: .75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 5px rgba(0,0,0,.04);
}
.page-content { padding: 1.5rem; }
.page-header {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header h1 { font-size: 1.4rem; font-weight: 800; }

/* KPI/Stats cards */
.kpi-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.kpi-card.blue::before   { background: var(--primary); }
.kpi-card.green::before  { background: var(--success); }
.kpi-card.orange::before { background: var(--warning); }
.kpi-card.red::before    { background: var(--danger); }
.kpi-card.cyan::before   { background: var(--accent); }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.kpi-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.kpi-icon { font-size: 2.5rem; opacity: .15; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.kpi-trend { font-size: 0.78rem; margin-top: .5rem; }

/* Data tables */
.table-wrapper { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.table th {
  background: #F8FAFF;
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
  padding: .875rem 1rem;
}
.table td { padding: .875rem 1rem; font-size: 0.875rem; vertical-align: middle; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: #F8FAFF; }

/* Status badges */
.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  letter-spacing: .3px;
}
.badge-draft      { background: #F5F5F5; color: #757575; }
.badge-submitted  { background: #E3F2FD; color: var(--primary); }
.badge-review     { background: #FFF8E1; color: #F57F17; }
.badge-revision   { background: #FFF3E0; color: #E65100; }
.badge-accepted   { background: #E8F5E9; color: var(--success); }
.badge-rejected   { background: #FFEBEE; color: var(--danger); }
.badge-published  { background: #E8F5E9; color: var(--success); }
.badge-active     { background: #E8F5E9; color: var(--success); }
.badge-inactive   { background: #F5F5F5; color: #757575; }
.badge-pending    { background: #FFF8E1; color: #F57F17; }
.badge-paid       { background: #E8F5E9; color: var(--success); }
.badge-failed     { background: #FFEBEE; color: var(--danger); }

/* ---- Forms ---- */
.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(21,101,192,.12);
}
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--dark); margin-bottom: .4rem; }
.form-text { font-size: 0.78rem; }
.invalid-feedback { font-size: 0.78rem; }
.input-group-text { border: 2px solid var(--border); background: #f8f9fa; }

/* Auth pages */
.auth-wrapper {
  min-height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,188,212,.1), transparent);
  top: -200px; right: -200px;
  border-radius: 50%;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  width: 100%;
  max-width: 460px;
  padding: 3rem 2.5rem;
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.auth-logo .tagline { font-size: 0.75rem; color: var(--muted); }
.auth-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 0.25rem; }
.auth-subtitle { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.divider-text { text-align: center; position: relative; margin: 1.5rem 0; }
.divider-text::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.divider-text span { background: #fff; padding: 0 1rem; color: var(--muted); font-size: 0.8rem; position: relative; }

/* ---- Footer ---- */
.site-footer {
  background: var(--gradient-dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-brand .name { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-brand .tagline { font-size: 0.78rem; color: rgba(255,255,255,.5); }
.footer-heading { color: rgba(255,255,255,.9); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-top: 3rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  margin: 0 4px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---- Alerts / Flash messages ---- */
.alert { border-radius: var(--radius); border: 0; font-size: 0.875rem; animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.alert-success { background: #E8F5E9; color: #1B5E20; border-left: 4px solid #4CAF50; }
.alert-danger  { background: #FFEBEE; color: #B71C1C; border-left: 4px solid #F44336; }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid #FF9800; }
.alert-info    { background: #E3F2FD; color: #0D47A1; border-left: 4px solid #2196F3; }

/* ---- Breadcrumb ---- */
.breadcrumb-section {
  background: #F8FAFF;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { margin: 0; font-size: 0.82rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ---- CART ---- */
.cart-float {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 200;
}
.cart-btn {
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(21,101,192,.4);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.cart-btn:hover { transform: scale(1.1); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 90px; right: 20px;
  z-index: 200;
}
.chat-toggle {
  width: 52px; height: 52px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,188,212,.4);
  cursor: pointer;
  transition: var(--transition);
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-box {
  position: absolute;
  bottom: 60px; right: 0;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--hover-shadow);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp .3s ease;
}
.chat-box.open { display: flex; }
.chat-header {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1rem;
  font-weight: 700;
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chat-msg {
  font-size: 0.82rem;
  padding: .5rem .875rem;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.4;
}
.chat-msg.admin { background: #EEF4FF; color: var(--dark); align-self: flex-start; border-radius: 4px 14px 14px 14px; }
.chat-msg.user  { background: var(--primary); color: #fff; align-self: flex-end; border-radius: 14px 4px 14px 14px; }
.chat-input {
  padding: .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
}
.chat-input input { flex: 1; border-radius: 20px; border: 1px solid var(--border); padding: .4rem .875rem; font-size: 0.82rem; }
.chat-input button { border: 0; background: var(--primary); color: #fff; border-radius: 50%; width: 34px; height: 34px; }

/* ---- OTP input ---- */
.otp-inputs { display: flex; gap: .75rem; justify-content: center; }
.otp-digit {
  width: 55px; height: 60px;
  text-align: center; font-size: 1.5rem; font-weight: 700;
  border: 2px solid var(--border); border-radius: 10px;
  transition: var(--transition);
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(21,101,192,.15); }

/* ---- Lightbox / modals ---- */
.modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer { border-top: 1px solid var(--border); }

/* ---- Loading / spinner ---- */
.loader-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
}
.loader-overlay.active { display: flex; }
.spinner-glow {
  width: 48px; height: 48px;
  border: 4px solid rgba(0,188,212,.3);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp .5s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Particles background (JS-driven) ---- */
#particles-js canvas { position: absolute !important; top: 0; left: 0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .auth-card { padding: 2rem 1.5rem; }
  .otp-digit { width: 44px; height: 50px; font-size: 1.2rem; }
  .table-responsive .table td:first-child { white-space: nowrap; }
}

/* ---- Print ---- */
@media print {
  .sidebar, .top-navbar, .site-header, .site-footer, .chat-widget, .cart-float { display: none !important; }
  .main-content { margin-left: 0 !important; }
}

/* ---- Utility ---- */
.cursor-pointer { cursor: pointer; }
.bg-primary-subtle { background: #EEF4FF; }
.border-primary-light { border-color: rgba(21,101,192,.2); }
.rounded-xl { border-radius: var(--radius-lg); }
.fw-800 { font-weight: 800; }
.gap-sm { gap: 0.5rem; }

/* ---- Notification dot ---- */
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ---- Progress bars ---- */
.progress { height: 6px; border-radius: 4px; background: var(--border); }
.progress-bar { border-radius: 4px; background: var(--gradient-primary); transition: width .8s ease; }
