/* ============================================
   GRAPESJS NEWSLETTER EDITOR - LIGHT THEME
   Matches screenshot design exactly
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --editor-bg: #f9f9fa;
  --panel-bg: #ffffff;
  --border-color: #f1f2f5;
  --border-dark: #eaebef;
  --text-primary: #121828;
  --text-primary-dark: #121828;
  --text-secondary: #7e8da5;
  --hover-bg: #f3f5f8;
  --accent-color: #1e87f0;
  --accent-light: #e8f2fc;
  --block-bg: #fdfdfd;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-md: 6px;
  --radius-sm: 4px;
}

/* ============================================
   MAIN EDITOR CONTAINER
   ============================================ */
.gjs-editor {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--editor-bg) !important;
}

/* ============================================
   TOP TOOLBAR
   ============================================ */
.gjs-pn-panels {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 46px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eaebef !important;
}

/* remove separate panels */
.gjs-pn-options,
.gjs-pn-views, 
.gjs-pn-commands,
.gjs-pn-devices-c {
  background: transparent !important;
}
.gjs-pn-commands {
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.gjs-pn-buttons {
  display: flex !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  align-items: center !important;
}

.gjs-pn-options  {
  right: 0 !important;
}

.gjs-pn-btn {
  background: var(--panel-bg) !important;
  border: 1px solid var(--border-dark) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px !important;
  transition: all 0.2s ease !important;
  font-size: 14px !important;
  height: 28px !important;
  min-width: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: var(--shadow-sm) !important;
}

.gjs-pn-btn:hover {
  background: var(--hover-bg) !important;
  color: var(--text-primary) !important;
}

.gjs-pn-btn.gjs-pn-active {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: var(--accent-color) !important;
}

/* ============================================
   CANVAS AREA
   ============================================ */
.gjs-cv-canvas {
  background: var(--editor-bg) !important;
  padding: 40px !important;
  top: 46px !important;
  height: calc(100% - 46px) !important;
}

.gjs-frame-wrapper {
  background: transparent !important;
  margin: 0 auto !important;
}

.gjs-frame {
  background: white !important;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.04) !important;
  border-radius: 8px !important;
  border: none !important;
}

/* ============================================
   RIGHT SIDEBAR - BLOCKS PANEL
   ============================================ */
.gjs-pn-views-container {
  background: var(--panel-bg) !important;
  border-left: 2px solid var(--border-color) !important;
  width: 320px !important;
  right: 0 !important;
  left: auto !important;
  position: absolute !important;
  top: 47px !important;
  height: calc(100% - 47px ) !important;
  box-shadow: none !important;
  padding-top: 0 !important;
}

.gjs-pn-views {
  display: none !important;
}

.gjs-blocks-c {
  background: var(--panel-bg) !important;
  padding: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
}

/* ============================================
   BLOCK CATEGORIES
   ============================================ */
   .gjs-block-categories {
    background: #FFFFFF !important;
   }
.gjs-block-category {
  background: transparent !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.gjs-block-category .gjs-title {
  background: #FBFCFC !important;
  color: var(--text-primary-dark) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  border-width: 0px, 0px, 1px, 1px;
flex-direction: row-reverse;
  border-style: solid;

  border-color: #F1F1F4;


  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.gjs-block-category .gjs-title:hover {
  background: var(--hover-bg) !important;
}

.gjs-block-category .gjs-caret-icon {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  margin-right: -4px !important;
  margin-left: auto !important;
  transition: transform 0.2s ease !important;
  opacity: 0.8 !important;
}

.gjs-block-category.gjs-open .gjs-caret-icon {
  transform: rotate(90deg) !important;
}

.gjs-block-category .gjs-blocks-c {
  padding: 8px 12px 16px 12px !important;
  background: transparent !important;
  margin-top: 0 !important;
}

/* ============================================
   BLOCKS CARDS
   ============================================ */
.gjs-block {
  background: var(--block-bg) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 8px !important;
  margin: 4px !important;
  width: calc(50% - 8px) !important;
  min-height: 85px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  cursor: grab !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.gjs-block:hover {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px) !important;
}

.gjs-block:active {
  cursor: grabbing !important;
  transform: scale(0.98) translateY(0) !important;
}

.gjs-cv-canvas {
  background: #eef3f3;
  width: calc(100% - 320px) !important;
}

/* ============================================
   BLOCK ICONS & MEDIA
   ============================================ */
.gjs-block-media {
  color: #a4b2c6 !important;
  font-size: 24px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.gjs-block-media svg {
  width: 24px !important;
  height: 24px !important;
  color: inherit !important;
}

.gjs-block-media .fa {
  font-size: 20px !important;
  color: inherit !important;
}

.gjs-block-media img {
  max-width: 100% !important;
  max-height: 54px !important;
  border-radius: var(--radius-sm) !important;
  object-fit: contain !important;
  display: block !important;
  border: 1px solid var(--border-dark) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.gjs-block-label {
  color: var(--text-primary) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
}

.gjs-blocks-c>div {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

/* ============================================
   EMPTY CANVAS PLACEHOLDER
   ============================================ */
.gjs-dashed>div::before,
.gjs-cv-canvas__frames>div[data-gjs-type="wrapper"]:empty::before {
  content: "Drag components here" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #7e8da5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: block !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 1 !important;
  margin-top: 24px !important;
}

.gjs-dashed>div::after,
.gjs-cv-canvas__frames>div[data-gjs-type="wrapper"]:empty::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin-top: -18px !important;
  width: 20px !important;
  height: 14px !important;
  background-color: transparent !important;
  border: 2px solid #cbd2de !important;
  border-radius: 4px !important;
  border-bottom-width: 3px !important;
  border-top-width: 3px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* ============================================
   SELECTION
   ============================================ */
.gjs-selected {
  outline: 2px solid var(--accent-color) !important;
  outline-offset: -2px !important;
}

.gjs-hovered {
  outline: 1px dashed var(--accent-color) !important;
  outline-offset: -1px !important;
  opacity: 0.8 !important;
}

/* ============================================
   SCROLLBARS
   ============================================ */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: #cbd2de !important;
  border-radius: 3px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #a4b2c6 !important;
}
.gjs-cv-canvas__frames [data-gjs-type="wrapper"]:empty::before {
  content: "Drag components here";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7e8da5;
  font-size: 14px;
}