/* ==========================================================================
   Thiện Anh - Vải Ngọc Modern Design System
   Pure CSS - Responsive, Performant, Mobile-first
   ========================================================================== */

:root {
  --primary: #c5222b;
  --primary-dark: #96171f;
  --primary-light: #fef2f2;
  --secondary: #15803d;
  --secondary-light: #f0fdf4;
  --accent: #d97706;
  --accent-light: #fffbeb;
  
  --bg-main: #fcfbfa;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .main-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-title .sub-title {
  font-size: 0.68rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 1px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (min-width: 1040px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(197, 34, 43, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(197, 34, 43, 0.09);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Hotline Pill */
.header-hotline {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem 0.35rem 0.45rem;
  background: rgba(197, 34, 43, 0.05);
  border: 1px solid rgba(197, 34, 43, 0.16);
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .header-hotline {
    display: inline-flex;
  }
}

.header-hotline:hover {
  background: rgba(197, 34, 43, 0.09);
  border-color: rgba(197, 34, 43, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 34, 43, 0.1);
}

.hotline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(197, 34, 43, 0.25);
  transition: transform 0.25s ease;
}

.header-hotline:hover .hotline-icon {
  transform: scale(1.08) rotate(12deg);
}

.hotline-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hotline-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.hotline-number {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* CTA Quote Button */
.btn-quote-cta {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(197, 34, 43, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quote-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 34, 43, 0.38);
}

/* Mobile Toggle */
.btn-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-mobile-toggle:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

@media (min-width: 1040px) {
  .btn-mobile-toggle {
    display: none;
  }
}

/* Responsive adjustment between 1040px and 1280px */
@media (max-width: 1280px) and (min-width: 1040px) {
  .header-inner {
    gap: 0.5rem;
  }
  .desktop-nav {
    gap: 0.15rem;
  }
  .nav-link {
    font-size: 0.88rem;
    padding: 0.4rem 0.55rem;
  }
  .header-hotline {
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    gap: 0.45rem;
  }
  .hotline-number {
    font-size: 0.84rem;
  }
  .btn-quote-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.86rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  z-index: 100;
  box-shadow: var(--shadow-xl);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
}

.drawer-link.active, .drawer-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 34, 43, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(197, 34, 43, 0.35);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #116327;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #f0fdf4 100%);
  padding: 4rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(197, 34, 43, 0.15);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.hero-card img {
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  object-fit: cover;
  width: 100%;
  max-height: 380px;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 34, 43, 0.3);
}

.product-thumb {
  position: relative;
  background: #fdfbf9;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 240px;
}

.product-thumb img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-specs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.price-quote {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Feature/Policy Grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .policy-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.policy-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.policy-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.policy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.policy-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Production Feature Section */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.feature-image-stack {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 34, 43, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #f8fafc;
  margin-top: auto;
  padding-top: 4rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-brand a {
  color: #cbd5e1;
}

.footer-brand a:hover {
  color: #ffffff;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-menu a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  background: #020617;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.5rem;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #0f172a;
  color: #f8fafc;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  padding: 1.5rem;
  border-bottom: 1px solid #1e293b;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.15rem;
}

.admin-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: #ffffff;
  background: #1e293b;
  border-left: 3px solid var(--primary);
}

.admin-main {
  flex-grow: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 2rem;
  flex-grow: 1;
}

/* Admin Data Tables */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #fafbfc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-new {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.badge-contacted {
  background-color: #fffbeb;
  color: #b45309;
}

.badge-qualified {
  background-color: #f0fdf4;
  color: #15803d;
}

.badge-closed {
  background-color: #f1f5f9;
  color: #475569;
}

.badge-published {
  background-color: #f0fdf4;
  color: #15803d;
}

.badge-draft {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* -------------------------------------------------------------
   Quill Rich Text Editor Theme Customization
   ------------------------------------------------------------- */
.quill-editor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quill-editor-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(197, 34, 43, 0.1);
}

.ql-toolbar.ql-snow {
  background: #f8fafc;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0.65rem 0.85rem !important;
  font-family: inherit;
}

.ql-container.ql-snow {
  border: none !important;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ql-editor {
  min-height: 280px;
  padding: 1.15rem 1.25rem;
}

.ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
  font-size: 0.92rem;
}

.ql-snow .ql-picker {
  font-family: inherit;
  font-size: 0.88rem;
}

.ql-snow .ql-stroke {
  stroke: #475569;
}

.ql-snow .ql-fill {
  fill: #475569;
}

.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active,
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected,
.ql-snow button:hover,
.ql-snow button:focus,
.ql-snow button.ql-active {
  color: var(--primary) !important;
}

.ql-snow button:hover .ql-stroke,
.ql-snow button:focus .ql-stroke,
.ql-snow button.ql-active .ql-stroke {
  stroke: var(--primary) !important;
}

.ql-snow button:hover .ql-fill,
.ql-snow button:focus .ql-fill,
.ql-snow button.ql-active .ql-fill {
  fill: var(--primary) !important;
}

