/* =============================================================
   BMT Project - Cleaned CSS
   -------------------------------------------------------------
   Tailwind‑like utility classes for the BMT PHP site.
   Organized for readability and easy maintenance.
   ============================================================= */

/* -------------------------------------------------------------
   CSS Variables (Theme)
   ------------------------------------------------------------- */
:root {
  --primary: #38e07b;
  --primary-dark: #15803d;
  --secondary: #122017;
  --bg-dark: #122017;
  --bg-light: #f6f8f7;
  --text-dark: #0e1a13;
  --text-muted: #51946c;
  --text-light: #6b7280;
  --border-light: #d1e6d9;
  --border-dark: #2a3c31;
  --card-bg: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --success: #166534;
  --success-bg: #dcfce7;
  --warning: #92400e;
  --warning-bg: #fef3c7;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* -------------------------------------------------------------
   Base Reset & Global Styles
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------
   Typography
   ------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
.text-primary {
  color: var(--primary);
}
.text-muted {
  color: var(--text-muted);
}
.text-danger {
  color: var(--danger);
}
.text-success {
  color: var(--success);
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  outline: none;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Primary */
.btn-primary {
  background: #38e07b;
  color: #122017;
  border: none;
  height: 50px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}
/* Secondary / Outline */
.btn-secondary,
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: var(--secondary);
}
/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-light);
  color: var(--text-dark);
}
/* Danger */
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: none;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}
/* Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}
.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* -------------------------------------------------------------
   Forms
   ------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--text-dark);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 224, 123, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2351946c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* -------------------------------------------------------------
   Cards, Alerts, Badges
   ------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.card-body {
  padding: 24px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.alert-success {
  background: var(--success-bg);
  color: var(--success);
}
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge-primary {
  background: rgba(56, 224, 123, 0.15);
  color: var(--primary-dark);
}

/* -------------------------------------------------------------
   Admin Layout
   ------------------------------------------------------------- */
.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
}
.admin-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}
.admin-logo span {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-dark);
}
.admin-tabs {
  display: flex;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px; /* Pill shape container */
  padding: 4px;
  gap: 4px;
  position: relative;
}
.admin-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px; /* Pill shape items */
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
}
.admin-tab .material-symbols-outlined {
  font-size: 20px;
}
.admin-tab:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.05);
}
.admin-tab.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 700;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user-name {
  font-size: 14px;
  color: var(--text-muted);
}
.admin-user-name strong {
  color: var(--text-dark);
}
.table-wrapper {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border-light);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #fafafa;
}
.cover-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid var(--border-light);
}
.item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.item-slug {
  font-size: 12px;
  color: var(--text-muted);
}
.action-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* -------------------------------------------------------------
   Login Page
   ------------------------------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3025 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(56, 224, 123, 0.1) 0%,
    transparent 70%
  );
}
.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo img {
  height: 60px;
  margin-bottom: 16px;
}
.login-logo h1 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.login-logo p {
  color: var(--text-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------
   Editor Page
   ------------------------------------------------------------- */
.editor-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.editor-header {
  margin-bottom: 32px;
}
.editor-title {
  font-size: 28px;
  margin-bottom: 8px;
}
.editor-section {
  margin-bottom: 24px;
}
.editor-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.image-preview-container {
  position: relative;
  margin-bottom: 16px;
}
.image-preview {
  width: 200px;
  height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--border-light);
  background: #f9fafb;
}
.image-preview-remove {
  position: absolute;
  top: -8px;
  right: calc(100% - 208px);
  width: 28px;
  height: 28px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ql-toolbar.ql-snow {
  border: 2px solid var(--border-light) !important;
  border-bottom: none !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  background: #fafafa;
}
.ql-container.ql-snow {
  border: 2px solid var(--border-light) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  font-size: 15px;
  font-family: "Manrope", sans-serif;
  min-height: 300px;
}
.ql-editor {
  min-height: 300px;
}

/* -------------------------------------------------------------
   Product Detail Styles (Added)
   ------------------------------------------------------------- */
.product-description {
  line-height: 1.8;
  color: var(--text-dark);
  margin-top: 20px;
}
.product-description h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  border-bottom: 2px solid #dcfce7;
  padding-bottom: 8px;
}
.product-description h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}
.product-description p {
  margin-bottom: 16px;
  text-align: justify;
}
.product-description ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 10px;
}
.product-description li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.product-description li::before {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 20px;
}
.product-description img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.main-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  aspect-ratio: 4/3;
  background: #fff;
}
.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  cursor: pointer;
}

/* -------------------------------------------------------------
   Utilities
   ------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.2s ease;
}
.back-link:hover {
  color: var(--primary-dark);
}

/* -------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    display: none;
  }
  .login-card {
    padding: 32px 24px;
  }
  .admin-user {
    gap: 8px;
  }
  .admin-user-name {
    display: none;
  }
}
@media (min-width: 769px) {
  .product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}
@media (max-width: 768px) {
  .product-gallery {
    position: static;
  }
}

/* -------------------------------------------------------------
   Restored Utilities & Legalitas Styles
   ------------------------------------------------------------- */

/* Grid Utilities (Tailwind-like) */
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-12 {
  gap: 3rem;
}

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Installation Wrapper (Mobile: 2 cols, Tablet+: 3 cols) */
.installation-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .installation-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .installation-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legalitas Wrapper (Mobile: 2 cols, Tablet+: 4 cols) */
.legalitas-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .legalitas-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Legalitas Image Container */
.legalitas-img-container {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  transition: all 0.3s ease;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
}
.legalitas-img-container:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}
.legalitas-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal for documents */
.legal-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.legal-modal.hidden {
  display: none;
}
.legal-modal-content {
  max-height: 90vh;
  width: 90vw;
  max-width: 480px; /* Fixed max-width for portrait look */
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Dark mode tweak for modal content */
@media (prefers-color-scheme: dark) {
  .legal-modal-content {
    background: #1a3025; /* dark background */
    color: #e8f2ec;
  }
}
.legalities-doc {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
}

/* Aspect Ratios */
.aspect-\[4\/3\] {
  aspect-ratio: 4/3;
}
.aspect-video {
  aspect-ratio: 16/9;
}

/* Text Sizes (Tailwind-like) */
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Spacing & Padding */
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.mt-12 {
  margin-top: 3rem;
}

/* Colors */
.bg-primary\/5 {
  background-color: rgba(56, 224, 123, 0.05);
}
.bg-primary\/10 {
  background-color: rgba(56, 224, 123, 0.1);
}
.bg-primary\/90 {
  background-color: rgba(56, 224, 123, 0.9);
}
.hover\:bg-primary\/90:hover {
  background-color: rgba(56, 224, 123, 0.9);
}
.hover\:shadow-2xl:hover {
  box-shadow: var(--shadow-xl);
}
.hover\:border-primary\/50:hover {
  border-color: rgba(56, 224, 123, 0.5);
}
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}
.group:hover .group-hover\:text-primary {
  color: var(--primary);
}

/* Overflow & Rounding */
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.overflow-hidden {
  overflow: hidden;
}
.object-cover {
  object-fit: cover;
}
.block {
  display: block;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
/* Installation Image Height - Reset for better mobile view */
.h-80 {
  height: 20rem;
}
@media (max-width: 639px) {
  .h-80 {
    height: 16rem;
  }
}

/* Flex alignment */
.justify-center {
  justify-content: center;
}
.flex-col {
  flex-direction: column;
}
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Dark Mode Support (Basic) */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: #e8f2ec;
  }
  .bg-white {
    background-color: #1a3025;
  }
  .text-gray-500 {
    color: #9ca3af;
  }
  .text-gray-900 {
    color: #f3f4f6;
  }
}

/* =============================================================
   BLOG / ARTICLE TYPOGRAPHY
   -------------------------------------------------------------
   Manual prose styling for .article-body and related elements
   to fix unstyled content in blog posts.
   ============================================================= */

/* Main Container */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Article Title & Meta */
.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article Cover Image */
.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Article Body Typography (Prose) */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 1.5em;
}

/* Headings within content */
.article-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.article-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.article-body ul {
  list-style-type: disc;
}
.article-body ol {
  list-style-type: decimal;
}
.article-body li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

/* Links */
.article-body a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.article-body a:hover {
  color: var(--primary);
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--accent-bg, #f0fdf4);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dark);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Bold/Strong */
.article-body strong,
.article-body b {
  font-weight: 700;
  color: var(--secondary);
}

/* Images in body */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Share Section Styling */
.share-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.share-label {
  display: block;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.share-buttons {
  display: flex;
  gap: 0.75rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.share-wa {
  background-color: #25d366;
}
.share-fb {
  background-color: #1877f2;
}
.share-x {
  background-color: #000000;
}
.share-li {
  background-color: #0077b5;
}

/* Dark Mode Overrides for Article */
@media (prefers-color-scheme: dark) {
  .article-title {
    color: #e8f2ec;
  }
  .article-body {
    color: #d1d5db;
  }
  .article-body h2,
  .article-body h3,
  .article-body h4 {
    color: #e8f2ec;
  }
  .article-body blockquote {
    background-color: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
  }
  .article-body strong {
    color: #38e07b;
  }
  .article-meta {
    border-color: var(--border-dark);
  }
  .share-section {
    border-color: var(--border-dark);
  }
  .share-label {
    color: #e8f2ec;
  }
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4rem auto;
  width: 100%;
}
@media (prefers-color-scheme: dark) {
  .section-divider {
    background: var(--border-dark);
  }
}

/* =============================================================
   FIXES AND MISSING STYLES
   ------------------------------------------------------------- */

/* -------------------------------------------------------------
   Custom Modal (Fixed)
   ------------------------------------------------------------- */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-backdrop.active .custom-modal {
  transform: translateY(0);
}

.modal-icon-danger {
  width: 64px;
  height: 64px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.modal-icon-danger span {
  font-size: 32px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.modal-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: var(--bg-light);
}

.btn-modal-delete {
  background: var(--danger);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-modal-delete:hover {
  background: #b91c1c;
}

/* -------------------------------------------------------------
   Password Toggle
   ------------------------------------------------------------- */
.relative-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--primary);
}

/* Hide default browser password toggle */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.modal-icon-primary {
    width: 64px;
    height: 64px;
    background: rgba(56, 224, 123, 0.15);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon-primary span {
    font-size: 32px;
}

.btn-modal-primary {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.btn-modal-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
