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

/* Color Variables Design System */
:root {
  --background: #f9fafb;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --primary: #1f2937;
  --primary-foreground: #f9fafb;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --accent: #f3f4f6;
  --accent-foreground: #111827;
  --primary-blue: #3b82f6;
  --primary-blue-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
}

.dark {
  --background: #0b0f19;
  --foreground: #f3f4f6;
  --card: #111827;
  --card-foreground: #f3f4f6;
  --primary: #f9fafb;
  --primary-foreground: #111827;
  --muted: #1f2937;
  --muted-foreground: #9ca3af;
  --border: #1f2937;
  --accent: #1f2937;
  --accent-foreground: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --border: #1e293b;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex-1 { flex: 1; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Grid systems */
.grid-main {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .grid-main {
    grid-template-cols: 2fr 1fr;
  }
}

.grid-cards {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-cards {
    grid-template-cols: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-cards {
    grid-template-cols: repeat(3, 1fr);
  }
}

/* Glassmorphism Cards */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.dark .glass {
  background: rgba(17, 24, 39, 0.65);
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Navigation Styles */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: none;
}
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons and Inputs */
.btn-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-toggle:hover {
  background-color: var(--muted);
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 180px;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.search-input:focus {
  outline: none;
  width: 240px;
  background-color: var(--card);
  border-color: var(--muted-foreground);
}
.search-icon {
  position: absolute;
  left: 0.65rem;
  color: var(--muted-foreground);
  pointer-events: none;
  width: 14px;
  height: 14px;
}

/* Hero news automatic slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  display: flex;
  align-items: flex-end;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.3) 60%, transparent 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem;
  max-width: 800px;
  color: #ffffff;
}

.slide-category {
  display: inline-block;
  background-color: var(--primary-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.slide-title {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .slide-title {
    font-size: 2.25rem;
  }
}

.slide-summary {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

/* Accordion Monthly Archive */
.month-group {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--card);
  overflow: hidden;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  user-select: none;
  background-color: var(--card);
  transition: background-color 0.2s ease;
}
.month-header:hover {
  background-color: var(--muted);
}

.month-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.month-title {
  font-size: 1.1rem;
  color: var(--foreground);
  font-family: var(--font-display);
}

.month-count {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--border);
  color: var(--muted-foreground);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.month-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  color: var(--muted-foreground);
}
.month-group.active .month-icon {
  transform: rotate(90deg);
}

.month-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}
.month-group.active .month-content {
  max-height: 1500px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  border-top: 1px solid var(--border);
}

.article-row-list {
  padding: 0.5rem;
}

.article-row-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}
.article-row-item:last-child {
  border-bottom: none;
}
.article-row-item:hover {
  background-color: var(--muted);
}
@media (min-width: 640px) {
  .article-row-item {
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
  }
}

.article-row-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .article-row-img {
    width: 140px;
    height: 90px;
    margin-bottom: 0;
  }
}

.article-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.article-row-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.article-row-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.article-row-title:hover {
  color: var(--primary-blue);
}

.article-row-summary {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar Elements */
.sidebar-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.popular-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.popular-item:last-child {
  margin-bottom: 0;
}

.popular-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--muted-foreground);
  opacity: 0.3;
  line-height: 1;
  min-width: 25px;
}

.popular-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.popular-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}
.popular-title:hover {
  color: var(--primary-blue);
}

.popular-views {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

/* Article Page specific styling */
.article-layout {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-cols: 3fr 1fr;
  }
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-title-main {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .article-title-main {
    font-size: 3rem;
  }
}

.article-summary-main {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.article-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

/* Rich Text Content Formatting */
.article-body-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--foreground);
  margin-bottom: 3rem;
}

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

.article-body-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}

.article-body-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}

.article-body-content blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--muted-foreground);
  font-size: 1.15rem;
}

.article-body-content ul, .article-body-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body-content li {
  margin-bottom: 0.5rem;
}

/* Floating Author Card */
.author-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 6rem;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--border);
}

.author-name {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.author-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.author-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 0.15s;
}
.social-link:hover {
  color: var(--foreground);
}

/* Comments section */
.comments-container {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  margin-top: 3rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.comment-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.comment-body {
  font-size: 0.9rem;
  color: var(--foreground);
}

/* Comment Form */
.comment-form {
  background-color: var(--muted);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-cols: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: var(--primary-blue-hover);
}

/* Lightbox gallery styles */
.gallery-grid {
  display: grid;
  grid-template-cols: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.gallery-thumb:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* Lightbox overlay modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer Section */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background-color: var(--card);
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-cols: repeat(3, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.footer-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.footer-links a:hover {
  color: var(--foreground);
}

/* Newsletter Inline form */
.newsletter-form-inline {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form-inline .form-control {
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Theme classes integration mapping */
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-card { background-color: var(--card); }
.border-border { border-color: var(--border); }
.border-b { border-bottom-width: 1px; }
.rounded-2xl { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-md); }
.p-6 { padding: 1.5rem; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.w-full { width: 100%; }

/* SVG Map coloring styles */
.map-district {
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

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

.admin-sidebar {
  width: 260px;
  background-color: var(--card);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.admin-nav-link:hover, .admin-nav-link.active {
  background-color: var(--muted);
  color: var(--foreground);
}

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.kpi-grid {
  display: grid;
  grid-template-cols: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
}

/* Tables in admin */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background-color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
  background-color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.badge-success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: var(--error); }

/* Newsletter Visual Editor CSS */
.newsletter-editor-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .newsletter-editor-grid {
    grid-template-cols: 2fr 1fr;
  }
}

.newsletter-canvas {
  background-color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-sidebar-blocks {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.block-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.block-tool-btn:hover {
  background-color: var(--border);
}

.canvas-block {
  background-color: #ffffff;
  color: #333333;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.canvas-block .block-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.canvas-block:hover .block-actions {
  opacity: 1;
}

.block-action-btn {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem;
  border-radius: 4px;
  cursor: pointer;
}
.block-action-btn:hover {
  background-color: #e2e8f0;
}

/* Alert utilities for implementation */
.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.alert-success { background-color: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); color: var(--success); }
.alert-error { background-color: rgba(239, 68, 68, 0.1); border: 1px solid var(--error); color: var(--error); }
.alert-warning { background-color: rgba(245, 158, 11, 0.1); border: 1px solid var(--warning); color: var(--warning); }
