body 
{
  font-family: "Poppins";
}

.layout-container {
  display: flex;
  height: 90vh;
}

.main-content {
  padding: 0;
  transition: flex 0.3s ease;
  overflow: hidden;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
}

.main-content.sidebar-open {
  flex: 0 0 70%;
}

.main-content.sidebar-closed {
  flex: 0 0 100%;
}

.sidebar {
  flex: 0 0 30%;
  padding-left: 20px;
  padding-top: 20px;
  background-color: #f9f9f9;
  position: relative;
}

.sidebar-close-btn {
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  padding: 4px;
  border-radius: 4px;
  color: black;
}

.sidebar-close-btn:hover {
  background-color: #e5e7eb;
}

.sidebar-open-btn {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  padding: 8px;
  /* background-color: #e5e7eb; */
  border-radius: 50%;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.sidebar-open-btn:hover {
  background-color: #d1d5db;
}

.editor-heading {
  font-size: 1.5rem;
  font-weight: bold;
  width: 100%;
}

.editor-heading[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

/* Header Styles */
.header-gradient {
  height: 4rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}



.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.logo-icon .material-icons {
  color: #2d2d2d;
  font-size: 20px;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Sour Gummy', cursive, sans-serif;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  text-transform: none;
}

.header-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}



/* Header Layout Styles */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  color: white;
}

.header-left {
  flex: 1;
}

.header-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-title {
  font-family: 'Sour Gummy', cursive, sans-serif;
  font-weight: 700;
  color: white;
  margin: 0;
  font-size: 1.5rem;
  white-space: nowrap;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

/* Navigation Styles */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
}

.nav-link.current {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  cursor: default;
  pointer-events: none;
}

.nav-link .material-icons {
  font-size: 18px;
  opacity: 0.8;
}

.nav-link.current .material-icons {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .nav-link .material-icons {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 12px;
  }

  .header-logo {
    gap: 10px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .logo-icon .material-icons {
    font-size: 16px;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .studio-title {
    font-size: 1.2rem;
  }

  .header-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 4px;
  }

  .nav-link .material-icons {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 8px;
  }

  .header-logo {
    gap: 8px;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .logo-icon .material-icons {
    font-size: 14px;
  }

  .header-title {
    font-size: 0.95rem;
  }

  .studio-title {
    font-size: 0.9rem;
  }

  .header-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 5px 8px;
    font-size: 0.65rem;
    gap: 3px;
  }

  .nav-link .material-icons {
    font-size: 14px;
  }

  .nav-link span:not(.material-icons) {
    display: none;
  }

  .nav-link {
    min-width: 36px;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .header-content {
    padding: 0 6px;
  }

  .header-title {
    font-size: 0.85rem;
  }

  .studio-title {
    font-size: 0.8rem;
  }

  .header-nav {
    gap: 3px;
  }

  .nav-link {
    padding: 4px 6px;
    min-width: 32px;
  }

  .nav-link .material-icons {
    font-size: 12px;
  }
}

/* Main Workspace Styles */
.main-workspace {
  flex: 1;
  background:
    linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%),
    radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-workspace::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.workspace-header {
  padding: 12px 24px 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
  text-align: center;
}

.workspace-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.workspace-description {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.workspace-description .material-icons {
  font-size: 20px;
  color: #2d3748;
}

.editor-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  position: relative;
  z-index: 2;

}

.editor-main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 2;
  align-items: center;
}

.editor-main-column > .editor-wrapper {
  width: 100%;
  max-width: 65vw;
  min-height: calc(40vh - 40px);
}

.sms-section {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: calc(40vh - 40px);
  width: 100%;
  max-width: 65vw;
  z-index: 1;
}

.sms-section .sms-preview-container {
  flex: 1;
  width: 100%;
  min-height: calc(40vh - 40px);
}

/* ensures editor boxes only provide the space needed to click for a new item  */
.codex-editor__redactor {
  padding: 25px !important;
}

/* EditorJS popover container */
.ce-popover__container {
  max-height: 30rem !important;
  height: auto !important;
  width: auto !important;
  overflow-y: auto !important;
}

.editor-column-left,
.editor-column-right {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.editor-column-left p,
.editor-column-right p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  font-family: 'Sour Gummy', cursive, sans-serif;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.icons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.icons-row .material-icons {
  font-size: 24px;
  color: #6b7280;
}

.editor-container {
  padding: 32px;
  position: relative;
  z-index: 2;
  max-width: 900px;
  flex: 2;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* EditorJS Wrapper and Ribbon Toolbar Styles */
.editor-wrapper {
  padding: 32px;
  position: relative;
  z-index: 2;
  max-width: 40vw;
  flex: 2;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* Fix for EditorJS popover z-index issues with multiple editors */
/* See: https://github.com/codex-team/editor.js/issues/2383 */
/* Raise the entire wrapper's z-index when a popover is opened inside */
.editor-wrapper:has(.ce-popover--opened) {
  z-index: 100;
}

.codex-editor {
  z-index: unset;
}

.editor-wrapper > .editor-ribbon {
  margin: -32px -32px 16px -32px;
  border-radius: 16px 16px 0 0;
}

.editor-wrapper > #editorjs {
  background: transparent;
}

.editor-ribbon {
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.editor-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.ribbon-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

.ribbon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #4b5563;
  position: relative;
}

.ribbon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ribbon-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ribbon-btn .material-icons {
  font-size: 18px;
  color: inherit;
}

.ribbon-btn-danger {
  color: #dc2626;
}

.ribbon-btn-danger:hover {
  background: rgba(254, 226, 226, 0.8);
  border-color: rgba(220, 38, 38, 0.3);
  color: #b91c1c;
}

/* Tooltip styles */
.ribbon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9;
}

.ribbon-btn:hover::after {
  opacity: 1;
}

/* Ribbon separator styles */
.ribbon-separator {
  width: 1px;
  height: 24px;
  margin: 0 6px;
  display: flex;
  align-items: center;
}

.separator-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
}

/* Text formatting buttons */
.ribbon-text-format {
  background: rgba(239, 246, 255, 0.6);
  border-color: rgba(59, 130, 246, 0.2);
}

.ribbon-text-format:hover {
  background: rgba(239, 246, 255, 1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
}

/* Ensure EditorJS area has proper styling */
#editorjs {
  min-height: 400px;
  padding: 20px;
  outline: none;
}

/* Ribbon responsive adjustments */
@media screen and (max-width: 768px) {
  .editor-ribbon {
    padding: 6px 10px;
    flex-wrap: wrap;
  }
  
  .ribbon-btn {
    width: 28px;
    height: 28px;
  }
  
  .ribbon-btn .material-icons {
    font-size: 16px;
  }
  
  .ribbon-actions {
    margin-left: 8px;
  }
}

/* Enhanced Sidebar */
.sidebar {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    30deg,
    rgba(0, 0, 0, 0.01) 12%,
    transparent 12.5%,
    transparent 87%,
    rgba(0, 0, 0, 0.01) 87.5%
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.sidebar-close-btn {
  z-index: 10;
}

.sidebar-open-btn {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-open-btn:hover {
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateY(-50%) scale(1.05);
}

/* CustomButton styles */
.custom-button-wrapper {
  background: transparent;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 24px;
}

.custom-button-edit-wrapper {
  padding: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  max-width: 85%;
}

.custom-button-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.custom-button-color-input {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 3px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  outline: none;
}

.custom-button-color-label {
  font-size: 14px;
  color: #666;
  line-height: 50px;
}

.custom-button-color-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.custom-button-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-bottom: 4px;
}

.custom-button-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-button-slider::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-button-radius-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.custom-button-radius-wrapper {
  margin-bottom: 12px;
}

.custom-button-ready-btn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
}

.custom-button-ready-btn:not(:disabled) {
  opacity: 1;
}

.custom-button-preview {
  margin-top: 8px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  text-align: center;
}

.custom-button-final {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.custom-button-final:hover {
  opacity: 0.8;
}

/* CustomLink styles */
.custom-link-wrapper {
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  max-width: 85%;
  box-sizing: border-box;
  word-wrap: break-word;
}

.custom-link-edit-wrapper {
  padding: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  position: relative;
  padding-top: 3rem;
  max-width: 85%;
}

.custom-link-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.custom-link-ready-btn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
}

.custom-link-ready-btn:not(:disabled) {
  opacity: 1;
}

.custom-link-preview {
  margin-top: 8px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.custom-link-final {
  color: #0066cc;
  text-decoration: underline;
  font-size: 16px;
}

/* Custom Quote Component Styles */
.cdx-quote {
  margin: 20px 0;
  padding: 0;
  border: none;
}

.cdx-quote__wrapper {
  position: relative;
}

.cdx-quote__text {
  font-size: 1rem;
  line-height: 1.4;
  font-style: italic;
  color: #4a5568;
  padding: 12px 20px;
  margin: 0 0 10px 0;
  border-left: 4px solid #e2e8f0;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  /* min-height: 60px; */
  max-height: 20px;
  outline: none;
}

.cdx-quote__text:empty::before {
  content: attr(data-placeholder);
  color: #a0aec0;
  font-style: italic;
}

.cdx-quote--left {
  text-align: left;
}

.cdx-quote--center {
  text-align: center;
}

.cdx-quote--center .cdx-quote__text {
  border-left: none;
  border-top: 4px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
}

.cdx-quote--center .cdx-quote__caption {
  text-align: center;
}

.cdx-quote__settings-button {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  margin-right: 4px;
  background: #fff;
  color: #718096;
  transition: all 0.15s ease;
}

.cdx-quote__settings-button:hover {
  background: #f8f9fa;
  border-color: #cbd5e0;
}

.cdx-quote__settings-button--active {
  background: #3182ce;
  border-color: #3182ce;
  color: #fff;
}

.cdx-quote__settings-button svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
  .editor-layout {
    gap: 16px;
    padding: 16px;
  }

  .editor-column-left,
  .editor-column-right {
    max-width: 150px;
  }
}

@media screen and (max-width: 768px) {
  /* Body and main layout adjustments */
  body {
    flex-direction: column;
  }

  .main-content {
    flex: 1 !important;
    width: 100% !important;
  }

  .main-content.sidebar-open {
    flex: 1 !important;
  }

  .editor-wrapper
  {
    width: 100%;
  }

  /* Sidebar mobile behavior */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    z-index: 10;
    flex: none;
    padding: 16px;
    box-shadow: none;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    color: white;
  }

  /* Mobile backdrop */
  .sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .sidebar-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .sidebar-close-btn .material-icons {
    display: none;
  }

  .sidebar-close-btn::after {
    content: 'close';
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -moz-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .sidebar-open-btn {
    position: fixed;
    top: 40px;
    right: 16px;
    padding: 12px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Header mobile adjustments */
  .header-gradient {
    height: 7vh;
    min-height: 60px;
  }

  .header-logo {
    gap: 10px;
    margin-bottom: 4px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-icon .material-icons {
    font-size: 18px;
  }

  .header-title {
    font-size: 1.25rem;
  }

  .header-subtitle {
    font-size: 0.8rem;
  }

  /* Workspace adjustments */
  .workspace-header {
    padding: 16px 20px 12px;
  }

  .workspace-description {
    font-size: 0.9rem;
    gap: 8px;
  }

  .workspace-description .material-icons {
    font-size: 18px;
  }

  /* Editor layout mobile stacking */
  .editor-layout {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }

  .editor-column-left,
  .editor-column-right {
    max-width: 100%;
    min-height: auto;
    order: 2;
  }

  .editor-column-left {
    order: 1;
  }

  .editor-container {
    padding: 20px 16px;
    order: 2;
    max-width: 100%;
    width: 95%;
    flex: none;
    border-radius: 12px;
    margin: 0 auto;
  }

  .editor-column-right {
    order: 3;
  }

  .editor-column-left p,
  .editor-column-right p {
    font-size: 14px;
    margin: 4px 0;
  }

  /* Mobile sidebar content */
  .sidebar .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sidebar .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile button and form improvements */
  button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
  }

  input[type='text'],
  input[type='email'] {
    min-height: 44px;
    padding: 12px;
    font-size: 16px;
  }

  .sidebar button {
    min-height: 40px;
    font-size: 14px;
  }

  .sidebar .border {
    border: none !important;
  }

  .sidebar input {
    min-height: 40px;
    font-size: 14px;
  }

  /* Template grid mobile adjustments */
  .sidebar .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Tab navigation mobile */
  .border-b .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .border-b button {
    padding: 12px 8px;
    font-size: 12px;
    min-height: auto;
    color: white !important;
  }

  .border-b button:hover {
    color: #f0f0f0 !important;
  }

  /* Footer adjustments */
  footer {
    padding: 16px 0 !important;
    margin-top: 16px !important;
  }

  footer p {
    font-size: 10px !important;
    padding: 0 16px;
  }
}

/* Desktop sidebar - keep chevron icon */
@media screen and (min-width: 769px) {
  .sidebar-close-btn .material-icons {
    display: inline-block !important;
  }

  .sidebar-close-btn::after {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  /* Extra small screens */
  .header-title {
    font-size: 1.1rem;
  }

  .header-subtitle {
    font-size: 0.75rem;
  }

  .editor-container {
    padding: 16px 12px;
    margin: 0 8px;
  }

  .editor-wrapper
  {
    width: 100%;
  }

  .workspace-header {
    padding: 12px 16px 8px;
  }

  .editor-layout {
    padding: 12px 8px;
    gap: 16px;
  }

  .sidebar {
    padding: 12px;
  }

  .sidebar .p-4 {
    padding: 12px;
  }

  /* Single column template grid on very small screens */
  .sidebar .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .border-b .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Login System Styles */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
}

.login-card-body {
  padding: 40px 32px;
  text-align: center;
}

.login-logo {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-section {
  margin-bottom: 24px;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 100;
  color: #2d3748;
  margin: 0;
  font-family: 'PP Fragment', Arial, sans-serif;
  letter-spacing: -0.5px;
}

.form-item {
  margin-bottom: 16px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 16px;
  color: #2d3748;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.login-input::placeholder {
  color: #a0aec0;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .login-input {
  flex: 1;
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.input-group .btn-square {
  width: 50px;
  height: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-group .btn-square:hover {
  background: rgba(255, 255, 255, 1);
}

.input-group .btn-square .material-icons {
  color: #4a5568;
  font-size: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn.loading {
  background: rgba(255, 255, 255, 0.9);
  color: #4a5568;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.login-error {
  color: #e53e3e;
  text-align: center;
  margin: 16px 0;
  font-size: 14px;
  background: rgba(254, 202, 202, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(254, 202, 202, 0.8);
}

.login-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.login-link {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #5a67d8;
}

/* Landscape mobile adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .header-gradient {
    height: 6vh;
    min-height: 50px;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .header-subtitle {
    font-size: 0.7rem;
  }

  .editor-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .editor-column-left,
  .editor-column-right {
    display: none;
  }

  .editor-container {
    max-width: 100%;
    margin: 0;
  }

  .login-card {
    max-width: 350px;
  }

  .login-card-body {
    padding: 20px 24px;
  }

  .login-title {
    font-size: 1.25rem;
  }
}

/* Constituents Modal Styles */
.constituents-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  overflow-y: auto;
}

.constituents-modal {
  background: white;
  border-radius: 0.5rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 56rem;
  width: 95%;
  margin: 1rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.constituents-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.constituents-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.constituents-modal-close {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.constituents-modal-close:hover {
  color: #4b5563;
}

.constituents-filter-section {
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.constituents-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media screen and (max-width: 768px) {
  .constituents-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Mobile Modal in Sidebar */
  .constituents-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 1001;
  }

  .constituents-modal {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  }
}

.constituents-filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.constituents-filter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
}

.constituents-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.constituents-scrollable-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.constituents-add-all-container {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.constituents-action-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.constituents-add-all-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #2563eb;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  flex: 1;
}

.constituents-add-all-btn:hover {
  background-color: #1d4ed8;
}

.constituents-remove-all-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #dc2626;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.constituents-remove-all-btn:hover {
  background-color: #b91c1c;
}

.constituent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}

.constituent-item:hover {
  background-color: #f9fafb;
}

.constituent-info {
  flex: 1;
}

.constituent-name {
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.125rem 0;
  font-size: 0.875rem;
}

.constituent-email {
  font-size: 0.8125rem;
  color: #4b5563;
  margin: 0 0 0.125rem 0;
}

.constituent-tags {
  font-size: 0.6875rem;
  color: #6b7280;
  margin: 0;
}

.constituent-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.constituent-toggle-btn:hover {
  border-color: #93c5fd;
}

.constituent-toggle-btn.selected {
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: white;
}

.constituents-no-results {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.constituents-modal-footer {
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.constituents-selected-count {
  font-size: 0.875rem;
  color: #4b5563;
}

.constituents-done-btn {
  padding: 0.5rem 1rem;
  background-color: #4b5563;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.constituents-done-btn:hover {
  background-color: #374151;
}

/* View Toggle Styles */
.constituents-view-toggle {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  padding: 0.125rem;
}

.constituents-view-btn {
  padding: 0.375rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.25rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

.constituents-view-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.constituents-view-btn-active {
  padding: 0.375rem 0.5rem;
  border: none;
  background: white;
  cursor: pointer;
  border-radius: 0.25rem;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* Compact View Styles */
.constituent-item-compact {
  padding: 0.375rem 0.5rem;
}

.constituent-item-compact .constituent-info {
  min-height: auto;
  overflow: hidden;
}

.constituent-item-compact .constituent-toggle-btn {
  width: 1.5rem;
  height: 1.5rem;
}

.constituent-compact-layout {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  overflow: hidden;
}

.constituent-name-compact {
  font-weight: 500;
  color: #111827;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  min-width: 0;
}

.constituent-email-compact {
  color: #9ca3af;
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.constituent-email-compact::before {
  content: "• ";
  color: #d1d5db;
  margin: 0 0.125rem;
}

.constituent-tags-compact {
  color: #d1d5db;
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 2;
  min-width: 0;
}

.constituent-tags-compact::before {
  content: "• ";
  color: #e5e7eb;
  margin: 0 0.125rem;
}

/* Add All Button Animation */
.constituents-add-all-animated {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.constituents-add-all-animated:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.constituents-add-all-animated:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.constituents-add-all-animated:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.constituents-add-all-animated:disabled:hover {
  background-color: #2563eb;
  transform: none;
  box-shadow: none;
}

/* Add pulse animation when enabled */
@keyframes addButtonPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.constituents-add-all-animated:not(:disabled):hover {
  animation: addButtonPulse 0.6s ease-in-out;
}

/* Remove All Button Animation */
.constituents-remove-all-animated {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.constituents-remove-all-animated:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.constituents-remove-all-animated:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.constituents-remove-all-animated:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.constituents-remove-all-animated:disabled:hover {
  background-color: #dc2626;
  transform: none;
  box-shadow: none;
}

/* Add pulse animation when enabled */
@keyframes removeButtonPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.constituents-remove-all-animated:not(:disabled):hover {
  animation: removeButtonPulse 0.6s ease-in-out;
}

/* Delete Confirmation Glow Style */
.delete-confirm-glow {
  background: #ff6b6b !important;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 0 0 40px rgba(255, 68, 68, 0.4) !important;
  transform: scale(1.05);
  animation: confirmPulse 2s infinite ease-in-out;
}

@keyframes confirmPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 0 0 40px rgba(255, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8), 0 0 60px rgba(255, 68, 68, 0.6);
  }
}

/* StoryGrams Page Styles */
.storygrams-page {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  min-height: 100vh;
  padding: 2vh 2vw;
}

.storygrams-container {
  max-width: 90vw;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.storygrams-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3vh 4vw;
  text-align: center;
  position: relative;
}

/* Storygrams Back Navigation Styles */
.storygrams-nav {
  position: absolute;
  top: 50%;
  left: 3vw;
  transform: translateY(-50%);
  z-index: 10;
}

.storygrams-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.storygrams-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.storygrams-nav-link:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.storygrams-nav-link:hover::before {
  left: 100%;
}

.storygrams-nav-link:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: 0.1s;
}

.storygrams-nav-link .material-icons {
  font-size: 18px;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.storygrams-nav-link:hover .material-icons {
  opacity: 1;
  transform: translateX(-2px);
}

.storygrams-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.storygrams-subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
  opacity: 0.9;
  margin: 1vh 0 0 0;
  font-weight: 300;
}

.storygrams-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 4vw;
  color: #6b7280;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  background: rgba(249, 250, 251, 0.5);
}

.storygrams-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 1vw;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.storygrams-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  overflow: hidden;
}

.storygrams-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.storygrams-table th {
  padding: 2vh 3vw;
  text-align: left;
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.storygrams-table td {
  padding: 2vh 3vw;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.storygrams-row {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.storygrams-row:hover {
  background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
  transform: translateX(0.5vw);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.storygrams-row:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 2px 2px 0;
}

.storygrams-row:active {
  transform: translateX(0.25vw);
}

.storygrams-cell-main {
  font-weight: 500;
  color: #111827;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  display: flex;
  align-items: center;
  gap: 1.5vw;
}

.storygrams-icon {
  width: clamp(32px, 6vw, 40px);
  height: clamp(32px, 6vw, 40px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: clamp(0.7rem, 1.8vw, 0.875rem);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.storygrams-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.storygrams-main-text {
  color: #111827;
  font-weight: 600;
  margin-bottom: 0.5vh;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storygrams-sub-text {
  color: #6b7280;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storygrams-arrow {
  color: #9ca3af;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  transition: all 0.2s ease;
  margin-left: auto;
}

.storygrams-row:hover .storygrams-arrow {
  color: #667eea;
  transform: translateX(0.5vw);
}

.storygrams-empty {
  text-align: center;
  padding: 6vh 4vw;
  color: #6b7280;
  background: rgba(249, 250, 251, 0.5);
}

.storygrams-empty-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  color: #d1d5db;
  margin-bottom: 2vh;
}

.storygrams-empty-text {
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 500;
  margin: 0 0 1vh 0;
}

.storygrams-empty-subtext {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin: 0;
  opacity: 0.8;
}

.storygrams-footer {
  padding: 2vh 3vw;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  .storygrams-page {
    padding: 1vh 3vw;
  }

  .storygrams-container {
    max-width: 96vw;
    border-radius: 16px;
  }

  .storygrams-header {
    padding: 2vh 4vw;
  }

  /* Mobile navigation adjustments */
  .storygrams-nav {
    left: 2vw;
  }

  .storygrams-nav-link {
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 6px;
    border-radius: 10px;
  }

  .storygrams-nav-link .material-icons {
    font-size: 16px;
  }

  .storygrams-table th,
  .storygrams-table td {
    padding: 1.5vh 3vw;
  }

  .storygrams-cell-main {
    gap: 3vw;
  }

  .storygrams-row:hover {
    transform: none;
  }

  .storygrams-row:hover::before {
    width: 3px;
  }

  .storygrams-arrow {
    margin-left: 2vw;
  }
}

@media screen and (max-width: 480px) {
  .storygrams-page {
    padding: 1vh 2vw;
  }

  .storygrams-container {
    max-width: 98vw;
    border-radius: 12px;
  }

  .storygrams-header {
    padding: 2vh 3vw;
  }

  .storygrams-table th,
  .storygrams-table td {
    padding: 1vh 2vw;
  }

  .storygrams-cell-main {
    gap: 2vw;
  }

  .storygrams-text {
    flex: 1;
    min-width: 0;
  }

  .storygrams-arrow {
    margin-left: 1vw;
    flex-shrink: 0;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .storygrams-row {
    min-height: 8vh;
  }

  .storygrams-table th,
  .storygrams-table td {
    padding: 2vh 4vw;
  }

  .storygrams-row:active {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: scale(0.98);
  }
}

/* Delivery Status Page Styles */
.delivery-stats {
  display: flex;
  padding: 20px;
  gap: 20px;
  background: white;
}

.delivery-stat {
  flex: 1;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.delivery-stat-awaiting {
  background: #f3f4f6;
  color: #4b5563;
}

.delivery-stat-delivered {
  background: #dcfce7;
  color: #166534;
}

.delivery-stat-failed {
  background: #fef2f2;
  color: #dc2626;
}

.delivery-stat-number {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 5px;
}

.delivery-stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delivery-table-container {
  padding: 0 20px 20px 20px;
  background: white;
}

.delivery-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px 0;
  color: #374151;
}

.delivery-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
}

.delivery-table th, .delivery-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.delivery-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.delivery-status-delivered {
  color: #059669;
  font-weight: 500;
}

.delivery-status-failed {
  color: #dc2626;
  font-weight: 500;
}

.delivery-reason-text {
  color: #dc2626;
  font-size: 14px;
}

.delivery-reason {
  font-size: 14px;
  color: #6b7280;
}

.delivery-table-section {
  margin-bottom: 40px;
}

.delivery-table th, .delivery-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.delivery-table th:first-child, .delivery-table td:first-child {
  text-align: left;
  width: 40%;
}

.delivery-table th:nth-child(2), .delivery-table td:nth-child(2) {
  text-align: left;
  width: 30%;
}

.delivery-table th:last-child, .delivery-table td:last-child {
  text-align: left;
  width: 30%;
}

.expand-button {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.expand-button:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.expand-button:active {
  background: #d1d5db;
}

.delivery-table-hidden-rows {
  display: none;
}

.delivery-back-button {
  display: inline-block;
  margin: 20px 0 20px 20px;
  padding: 8px 16px;
  background: #6b7280;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.delivery-back-button:hover {
  background: #4b5563;
}

.delivery-empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

/* Delivery Sort Controls */
.delivery-sort-controls {
  background: #f8faff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.sort-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sort-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

.sort-group input,
.sort-group select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #374151;
  transition: all 0.2s ease;
  min-width: 0;
}

.sort-group input:focus,
.sort-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sort-group input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.apply-filters-btn,
.clear-filters-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
  height: fit-content;
}

.apply-filters-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.apply-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.clear-filters-btn {
  background: white;
  color: #6b7280;
  border-color: #d1d5db;
}

.clear-filters-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* Mobile responsive adjustments for sort controls */
@media screen and (max-width: 768px) {
  .delivery-sort-controls {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .sort-group {
    flex: none;
    width: 100%;
  }

  .apply-filters-btn,
  .clear-filters-btn {
    width: 100%;
    padding: 12px 16px;
  }
}

@media screen and (min-width: 769px) {
  .delivery-sort-controls {
    align-items: center;
  }

  .sort-group {
    flex: 1;
    max-width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .delivery-sort-controls {
    margin: 0 -20px 20px -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Email polling indicator styles */
.email-polling-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin-left: auto;
  padding: 8px 12px;
  background: #f0f4f8;
  border-radius: 6px;
  border: 1px dashed #9ca3af;
}

.email-polling-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #6b7280;
  border-radius: 50%;
  animation: email-polling-spin 1s linear infinite;
}

@keyframes email-polling-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile adjustments for email polling indicator */
@media screen and (max-width: 768px) {
  .email-polling-indicator {
    margin-left: 0;
    align-self: center;
  }
}

/* Email up to date notification styles */
.email-up-to-date-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
  font-size: 14px;
  margin-left: auto;
  padding: 8px 12px;
  background: #d1fae5;
  border-radius: 6px;
  border: 1px solid #10b981;
  animation: email-notification-fade-in 0.3s ease-in;
}

.email-up-to-date-checkmark {
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

@keyframes email-notification-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments for email up to date notification */
@media screen and (max-width: 768px) {
  .email-up-to-date-notification {
    margin-left: 0;
    align-self: center;
  }
}

/* Storygrams sorting container and buttons */
.storygrams-sort-container {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.storygrams-sort-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.storygrams-sort-btn {
  background: #f8f9fa;
  border: 1px solid #6b7280;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

.storygrams-sort-btn:hover {
  background-color: #e5e7eb;
  border-color: #4b5563;
  color: #1f2937;
}

.storygrams-sort-active {
  background-color: #374151;
  border-color: #374151;
  color: white;
  box-shadow: 0 2px 4px rgba(55, 65, 81, 0.2);
}

.storygrams-sort-active:hover {
  background-color: #4b5563;
  border-color: #4b5563;
}

/* Pagination Styles */
.storygrams-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
}

.pagination-info {
  font-size: 0.875rem;
  color: #6b7280;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-btn:active:not(:disabled) {
  background: #e5e7eb;
}

.pagination-btn-nav {
  padding: 0;
}

.pagination-btn-nav .material-icons {
  font-size: 20px;
}

.pagination-btn-page {
  min-width: 36px;
}

.pagination-btn-active {
  background: #374151;
  border-color: #374151;
  color: white;
}

.pagination-btn-active:hover:not(:disabled) {
  background: #4b5563;
  border-color: #4b5563;
}

.pagination-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn-ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 24px;
}

.pagination-btn-ellipsis:hover {
  background: transparent;
}

.ce-block .image-tool {
    text-align: center;
  }

.ce-block .image-tool img {
  display: inline-block;
  margin: 0 auto;
}

.cdx-text { 
  width: 100%;
}

.ce-paragraph 
{
  font-family: 'Arial';
}

/* Ribbon Label Styles */
.ribbon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 6px;
  margin-right: 8px;
}

.ribbon-label-text {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.02em;
}

.ribbon-label .material-icons {
  font-size: 18px;
  color: #3b82f6;
}

/* Phone Preview Styles */
.sms-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: (40h - 20px);
}

.phone-mockup {
  width: 320px;
  height: 600px;
  background: #1f2937;
  border-radius: 36px;
  padding: 12px;
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #374151;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: #10b981;
  padding: 24px 16px 12px 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-contact-avatar {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-weight: 600;
  font-size: 14px;
}

.phone-contact-name {
  font-size: 16px;
  font-weight: 600;
}

.phone-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sms-message-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 75%;
  align-self: flex-end;
}

.sms-bubble {
  padding: 8px 12px;
  border-radius: 18px;
  background: #10b981;
  color: white;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
}

.sms-bubble-text {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 2px 4px;
}

.sms-bubble-text:first-child {
  padding-top: 2px;
}

.sms-bubble-text:last-child {
  padding-bottom: 2px;
}

.sms-bubble-image {
  width: 100%;
  max-width: 250px;
  border-radius: 14px;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.sms-bubble-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-size: 13px;
}

.sms-bubble-link .material-icons {
  font-size: 16px;
}

.sms-timestamp {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin-top: 4px;
}

/* SMS Layout Columns */
.sms-editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

/* ============================================
   STORYGRAMS DELIVERY: EMAIL + SMS TWO-COLUMN LAYOUT
   ============================================ */

/* Stats Grid - Two Columns */
.delivery-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.delivery-stats-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.delivery-stats-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 15px 0;
  text-align: center;
}

/* Two Column Layout for Email and SMS */
.delivery-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.delivery-column {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 400px;
}

.delivery-column-header {
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.delivery-column-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

/* Filter Controls */
.delivery-filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 250px;
}

.filter-input-group label {
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
  white-space: nowrap;
}

.filter-input-group input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  color: #2d3748;
  transition: all 0.2s ease;
}

.filter-input-group input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.clear-filter-btn {
  padding: 8px 16px;
  background: #f7fafc;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 13px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.clear-filter-btn:hover {
  background: #edf2f7;
  border-color: #a0aec0;
}

/* Polling Indicator */
.polling-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #eef2ff;
  border-radius: 6px;
  font-size: 12px;
  color: #5a67d8;
}

.polling-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #c3dafe;
  border-top-color: #5a67d8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Up to Date Notification */
.up-to-date-notification {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f0fdf4;
  border-radius: 6px;
  font-size: 12px;
  color: #059669;
  animation: fadeIn 0.3s ease;
}

.up-to-date-checkmark {
  width: 16px;
  height: 16px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Loading State */
.section-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #718096;
}

.section-loading p {
  margin: 12px 0 0 0;
  font-size: 14px;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: #cbd5e0;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Section Error State */
.section-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #e53e3e;
}

.section-error .material-icons {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-error p {
  margin: 0;
  font-size: 14px;
}

/* Delivery Subsections */
.delivery-subsection {
  margin-bottom: 30px;
}

.delivery-subsection:last-child {
  margin-bottom: 0;
}

.delivery-subsection-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.delivery-empty-state-small {
  padding: 40px 20px;
  text-align: center;
  color: #a0aec0;
  font-size: 14px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e0;
}

/* SMS Status Indicator */
.sms-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.sms-status-indicator .material-icons {
  font-size: 16px;
}

/* SMS Table Styling */
.sms-table tbody tr {
  transition: background-color 0.2s ease;
}

.sms-table tbody tr:hover {
  background-color: #f7fafc;
}

/* History Redirect Button */
.history-redirect-button {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.history-redirect-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.history-redirect-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-redirect-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-redirect-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.history-redirect-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.history-redirect-arrow {
  font-size: 32px;
  color: white;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.history-redirect-button:hover .history-redirect-arrow {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .delivery-two-column-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .delivery-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .delivery-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-input-group {
    min-width: 100%;
  }

  .clear-filter-btn {
    width: 100%;
  }
}

/* ============================================
   SMS STEP PROGRESSION STYLING
   ============================================ */

/* Container for the SMS steps */
.sms-steps-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Individual step boxes */
.sms-step {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #e5e7eb;
  color: #9ca3af;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
  border: 2px solid transparent;
}

/* Active step styling */
.sms-step-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

/* Step text */
.sms-step-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Arrow between steps */
.sms-arrow {
  font-size: 20px;
  color: #d1d5db;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Active arrow styling */
.sms-arrow-active {
  color: #10b981;
  transform: scale(1.2);
}

/* Responsive adjustments for SMS steps */
@media (max-width: 1400px) {
  .sms-step {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 90px;
  }

  .sms-arrow {
    font-size: 18px;
  }
}

@media (max-width: 1200px) {
  .sms-step {
    padding: 6px 8px;
    font-size: 10px;
    min-width: 80px;
  }

  .sms-arrow {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .sms-steps-container {
    gap: 6px;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .sms-step {
    padding: 6px 8px;
    font-size: 10px;
    min-width: 75px;
  }

  .sms-arrow {
    font-size: 14px;
  }
}

/* Transparent preview button styling */
.btn-preview-transparent {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.btn-preview-transparent:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview-transparent:active {
  transform: translateY(0);
}

/* Sidebar Tabs Styling */
.sidebar-tabs-navigation {
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.sidebar-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.sidebar-tab-button {
  white-space: nowrap;
  height: 2.6rem;
  padding: 0 0.75rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 0.875rem;
  transition: colors 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.sidebar-tab-button:hover {
  color: #374151;
  border-bottom-color: #d1d5db;
}

/* My Templates Tab */
.sidebar-tab-templates {
  color: #6b7280;
  border-bottom-color: transparent;
}

.sidebar-tab-templates.active {
  color: #2563eb;
  border-bottom-color: #3b82f6;
}

.sidebar-tab-templates:hover:not(.active) {
  color: #374151;
  border-bottom-color: #d1d5db;
}

/* Send Out Tab */
.sidebar-tab-sendout {
  color: #6b7280;
  border-bottom-color: transparent;
}

.sidebar-tab-sendout.active {
  color: #2563eb;
  border-bottom-color: #3b82f6;
}

.sidebar-tab-sendout:hover:not(.active) {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.sidebar-tab-icon {
  font-size: 0.875rem;
}

.sidebar-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Sammy AI Assistant Tab */
.sidebar-tab-sammy {
  color: #6b7280;
  border-bottom-color: transparent;
}

.sidebar-tab-sammy.active {
  color: #8b5cf6;
  border-bottom-color: #a78bfa;
}

.sidebar-tab-sammy:hover:not(.active) {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.sidebar-tab-icon {
  font-size: 0.875rem;
}

/* Sammy Chat Interface */
.sammy-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0;
}

.sammy-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.sammy-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.sammy-avatar .material-icons {
  color: white;
  font-size: 24px;
}

.sammy-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.sammy-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

/* Preference Rack Container */
.preference-rack-container {
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Preference Rack Toggle Button */
.preference-rack-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  background-color: #f9fafb;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preference-rack-toggle:hover {
  background-color: #f3f4f6;
}

.preference-rack-arrow {
  font-size: 14px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.preference-rack-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preference-rack-toggle-open .preference-rack-arrow {
  transform: rotate(0deg);
}

.preference-rack-toggle-closed .preference-rack-arrow {
  transform: rotate(0deg);
}

/* Sammy Mode Controls */
.sammy-mode-controls {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #f9fafb;
  flex-shrink: 0;
}

.sammy-mode-toggle-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.sammy-mode-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  min-width: fit-content;
}

.sammy-info-icon {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: help;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.sammy-info-icon:hover {
  color: #6366f1;
}

.sammy-info-icon .material-icons {
  font-size: 12px;
}

.sammy-toggle-wrapper {
  display: flex;
  gap: 0.125rem;
  background-color: #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.125rem;
  flex: 1;
}

.sammy-toggle-option {
  flex: 1;
  padding: 0.25rem 0.625rem;
  background-color: transparent;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.sammy-toggle-option:hover {
  color: #374151;
  background-color: rgba(255, 255, 255, 0.5);
}

.sammy-toggle-active {
  background-color: white;
  color: #6366f1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.sammy-toggle-active:hover {
  background-color: white;
  color: #6366f1;
}

.sammy-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.sammy-message {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 85%;
  font-size: 0.875rem;
  line-height: 1.4;
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sammy-message-ai {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #581c87;
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.sammy-message-user {
  background: #f3f4f6;
  color: #1f2937;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.sammy-message-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sammy-typing-dots {
  display: flex;
  gap: 4px;
}

.sammy-typing-dots span {
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.sammy-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.sammy-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sammy Loading Indicator with Gear */
.sammy-typing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease;
}

.sammy-gear-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sammy-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  animation: gearSpin 2s linear infinite;
}

.sammy-gear .material-icons {
  font-size: 16px;
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sammy-loading-text {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 80px;
}

.sammy-loading-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #6b7280;
  margin-left: 2px;
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.sammy-typing-dot {
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.sammy-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.sammy-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.sammy-dots-container {
  display: flex;
  gap: 4px;
  padding-top: 0.25rem;
}

.sammy-input-container {
  flex-shrink: 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.sammy-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: all 0.2s ease;
}

.sammy-input-wrapper:focus-within {
  border-color: #8b5cf6;
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sammy-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  padding: 0;
  font-family: inherit;
  overflow-y: auto;
  line-height: 1.5;
}

.sammy-input::placeholder {
  color: #9ca3af;
}

.sammy-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sammy-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.sammy-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sammy-send-btn .material-icons {
  color: white;
  font-size: 16px;
}

/* Animated Placeholder */
.sammy-placeholder-text {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.sammy-placeholder-animated {
  animation: placeholderScroll 12s linear infinite;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sammy-message-ai {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #581c87;
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.sammy-message-user {
  background: #f3f4f6;
  color: #1f2937;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.sammy-message-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sammy-typing-dots {
  display: flex;
  gap: 4px;
}

.sammy-typing-dots span {
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.sammy-typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.sammy-typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sammy Loading Indicator with Gear */
.sammy-typing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  max-width: 85%;
  animation: messageSlideIn 0.3s ease;
}

.sammy-gear-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sammy-gear {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  animation: gearSpin 2s linear infinite;
}

.sammy-gear .material-icons {
  font-size: 16px;
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sammy-loading-text {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 80px;
}

.sammy-loading-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #6b7280;
  margin-left: 2px;
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.sammy-typing-dot {
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.sammy-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.sammy-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.sammy-dots-container {
  display: flex;
  gap: 4px;
  padding-top: 0.25rem;
}

.sammy-input-container {
  flex-shrink: 0;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.sammy-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: all 0.2s ease;
}

.sammy-input-wrapper:focus-within {
  border-color: #8b5cf6;
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.sammy-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  padding: 0;
  font-family: inherit;
  overflow-y: auto;
  line-height: 1.5;
}

.sammy-input::placeholder {
  color: #9ca3af;
}

.sammy-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sammy-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.sammy-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sammy-send-btn .material-icons {
  color: white;
  font-size: 16px;
}

/* Animated Placeholder */
.sammy-placeholder-text {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.sammy-placeholder-animated {
  animation: placeholderScroll 12s linear infinite;
}

@keyframes placeholderScroll {
  0%, 100% {
    opacity: 0;
  }
  5%, 20% {
    opacity: 1;
  }
  25%, 100% {
    opacity: 0;
  }
}

/* Clear Chat Link */
.sammy-clear-link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.sammy-clear-link:hover {
  color: #7c3aed;
  background: #f3e8ff;
}

/* Example Prompts (deprecated) */
.sammy-examples {
  display: none;
}

.sammy-example-btn {
  display: none;
}

/* Status Messages */
.sammy-status {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.sammy-status-success {
  background: #d1fae5;
  color: #065f46;
}

.sammy-status-error {
  background: #fee2e2;
  color: #991b1b;
}

.sammy-status-info {
  background: #e0e7ff;
  color: #3730a3;
}

/* Follow-up Questions */
.sammy-followup {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.sammy-followup-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 0.5rem 0;
}

.sammy-followup-question {
  font-size: 0.8125rem;
  color: #78350f;
  margin: 0.25rem 0;
}

.sammy-followup-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.sammy-suggestion-btn {
  padding: 0.25rem 0.5rem;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  color: #713f12;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sammy-suggestion-btn:hover {
  background: #fef08a;
  border-color: #facc15;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .sammy-messages {
    min-height: 150px;
  }

  .sammy-message {
    max-width: 90%;
  }

  .sammy-examples {
    gap: 0.375rem;
  }

  .sammy-example-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
}

/* Custom Toolbar Delete Button */
.my-custom-toolbar-button {
  color: #544C4A;
  border: none;
  cursor: pointer;
  font-size: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.my-custom-toolbar-button.ready {
  color: #dc2626;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.6));
}

.my-custom-toolbar-button:hover {
  opacity: 0.8;
}

/* Tooltip Styles */
.ct.ct--bottom {
  position: absolute;
  display: none;
  z-index: 9999;
}

.ct.ct--shown {
  display: block;
}

.ct__content {
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* Toolbar Settings Button (Drag Indicator) */
.ce-toolbar__settings-btn {
  color: #544C4A !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 12px !important;
  transform: scale(-1, 1) !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-left: 3px !important;
}

/* Toolbar Add Button */
.ce-toolbar__plus {
  color: #544C4A !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 12px !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ce-paragraph.cdx-block {
  text-align: center;
  font-size: 18px;
}

