/* Comic creator styles - Dark theme */
:root {
    --comic-spacing: 6px;
    --comic-margin: 10px;
    --background-color: #1e1e2f;
    --panel-color: #2a2a3c;
    --border-color: #444;
    --highlight-color: #8a2be2;
    --text-color: #fff;
    --separator-hover: rgba(138, 43, 226, 0.5);
    --separator-active: rgba(138, 43, 226, 0.8);
    --sidebar-width: 240px;
    --toolbar-height: 50px;
    --icon-color: #aaa;
    --icon-active-color: #fff;
    --btn-bg: #333;
    --btn-hover-bg: #444;
    --btn-active-bg: var(--highlight-color);

    --base_title_color: rgb(235 126 126);
}

html.dragging .mk_layer_block * {
    cursor: grabbing !important;
}

/* Aplicar específicamente al indicador de drop y áreas cercanas */
.layer-drop-indicator, 
.layer-drop-indicator + *, 
.layer-drop-indicator ~ * {
    cursor: grabbing !important;
}

/* Para el elemento que está siendo arrastrado */
[draggable="true"] {
    cursor: grab;
}

[draggable="true"]:active {
    cursor: grabbing;
}

/* Hide scrollbar for mobile welcome screen */
.scrollbar_hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar_hidden::-webkit-scrollbar {
    display: none;
}

/* Tutorials modal styles */
.tutorials-modal-container {
    max-width: 100%;
    max-height: 100%;
}

.tutorials-modal-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%; 
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none; 
}

/* Universal scrollbar styles for consistent appearance */
* {
    scrollbar-width: thin;
    scrollbar-color: #4B5563 #1f2937;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #1f2937;
}

*::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Legacy scrollbar class for backwards compatibility */
.scrollbar::-webkit-scrollbar {
    width: 8px;
}

.scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

.scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Gallery scrollbar - custom styling for better appearance */
.scrollbar-track-gray-800 {
  scrollbar-color: #4B5563 #1F2937; /* thumb track (Firefox) */
}

.scrollbar-track-gray-800::-webkit-scrollbar-track {
  background-color: #1F2937;
}

/* Welcome screen scrollbar styles - Using consistent gray colors */
.scrollbar-thumb-gray-600::-webkit-scrollbar-thumb {
  background-color: #4B5563;
  border-radius: 4px;
}

.scrollbar-thumb-gray-600::-webkit-scrollbar-thumb:hover {
  background-color: #6B7280;
}

/* Gallery specific scrollbar styling */
.gallery-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #6B7280 #1F2937; /* Initial gray thumb on dark track */
}

.gallery-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.gallery-scrollbar::-webkit-scrollbar-track {
  background: #1F2937;
  border-radius: 8px;
}

.gallery-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  border-radius: 8px;
  border: 1px solid #374151;
}

.gallery-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ec4899, #be185d);
  border-color: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
}

.gallery-scrollbar:hover {
  scrollbar-color: #ec4899 #1F2937; /* Firefox hover effect */
}

/* Gallery composite preview styles */
.gallery-composite-preview {
  isolation: isolate; /* Create stacking context for blend modes */
}

.gallery-composite-preview img {
  image-rendering: -webkit-optimize-contrast; /* Better quality for small thumbnails */
}

/* Firefox scrollbar */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #4B5563 #1F2937;
}

/* Hide scrollbar on mobile devices */
@media (max-width: 768px) {
    .md\:scrollbar-none {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .md\:scrollbar-none::-webkit-scrollbar {
        display: none;
    }
}

/* Layout containers */
#rinin_wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

#layer_drop_indicator {
    pointer-events: none !important;
}

.comic-maker {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar styles */
.comic-sidebar {
    width: var(--sidebar-width);
    background-color: var(--panel-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Remove focus styles for canvas wrapper */
.konvajs-content,
.konvajs-content canvas,
#canvas_wrapper:focus,
#canvas_wrapper:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Canvas wrapper - container for stage */
#canvas_wrapper {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

/* Drag and drop visual feedback */
#canvas_wrapper.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.5);
    transition: all 0.2s ease-in-out;
}

#canvas_wrapper.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.05);
    pointer-events: none;
    z-index: 10;
}

/* Ensure konvajs content can expand to use all available space */
.konvajs-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

/* Tool buttons */
.tool-button {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: var(--btn-bg);
    border: none;
    border-radius: 4px;
    color: var(--icon-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.tool-button:hover {
    background-color: var(--btn-hover-bg);
    color: var(--icon-active-color);
}

.tool-button.active {
    background-color: var(--btn-active-bg);
    color: var(--icon-active-color);
}

.tool-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Format selector */
.format-select {
    width: 100%;
    padding: 8px;
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Setting group styles */
.setting-group {
    margin-bottom: 12px;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Slider styles */
.slider {
    width: 100%;
    height: 6px;
    background: var(--btn-bg);
    outline: none;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--highlight-color);
    cursor: pointer;
    border: none;
}

/* Instructions styles */
.instructions {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--btn-bg);
    padding: 10px;
    border-radius: 4px;
}

.instructions p {
    margin: 5px 0;
}

/* Canvas container */
.canvas-container {
    position: relative;
    background-color: var(--background-color);
    width: 100%;
    height: 100%;
}

/* Update comic editor container to ensure it uses full available space */
.comic-editor-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--background-color);
    width: 100%;
    height: 100%;
    display: flex;
}

#comic_canvas {
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: white;
}

.user_select_none {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.panel_content {
    overflow: hidden;
    transition: all 0.2s ease-out;
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.panel_content.open {
    max-height: 2000px; 
    opacity: 1;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
    transition: all 0.2s ease-in;
}

.panel_header {
    user-select: none;
}

/* SNAKE CASE ALWAYS */

/* Custom Fonts - Basic */
@font-face {
    font-family: 'Wild Words';
    src: url('../miko_fonts/basic/CC Wild Words Roman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Wild Words';
    src: url('../miko_fonts/basic/CC Wild Words Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Wild Words';
    src: url('../miko_fonts/basic/CC Wild Words Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Clementine';
    src: url('../miko_fonts/basic/clementine.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom Fonts - Extended */
@font-face {
    font-family: 'New Wild Words';
    src: url('../miko_fonts/extended/New_Wild_Words.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace';
    src: url('../miko_fonts/extended/animeace2_reg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace';
    src: url('../miko_fonts/extended/animeace2_bld.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace';
    src: url('../miko_fonts/extended/animeace2_ital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace 3';
    src: url('../miko_fonts/extended/AnimeAce3BB_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace 3';
    src: url('../miko_fonts/extended/AnimeAce3BB_Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace 3';
    src: url('../miko_fonts/extended/AnimeAce3BB_Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Anime Ace 3';
    src: url('../miko_fonts/extended/AnimeAce3BB_BoldItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Ames';
    src: url('../miko_fonts/extended/Ames-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CC Astrocity';
    src: url('../miko_fonts/extended/ccastrocityint.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Joe Mad';
    src: url('../miko_fonts/extended/CCJoeMad.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Joe Mad';
    src: url('../miko_fonts/extended/CCJoeMad Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Joe Mad';
    src: url('../miko_fonts/extended/CCJoeMad Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion';
    src: url('../miko_fonts/extended/buddychampion.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion';
    src: url('../miko_fonts/extended/buddychampionbold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion';
    src: url('../miko_fonts/extended/buddychampionital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion';
    src: url('../miko_fonts/extended/buddychampionboldital.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion 3D';
    src: url('../miko_fonts/extended/buddychampion3d.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion 3D';
    src: url('../miko_fonts/extended/buddychampion3dital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Condensed';
    src: url('../miko_fonts/extended/buddychampioncond.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Condensed';
    src: url('../miko_fonts/extended/buddychampioncondital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Expanded';
    src: url('../miko_fonts/extended/buddychampionexpand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Expanded';
    src: url('../miko_fonts/extended/buddychampionexpandital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Left';
    src: url('../miko_fonts/extended/buddychampionleft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Rotate';
    src: url('../miko_fonts/extended/buddychampionrotate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Buddy Champion Rotal';
    src: url('../miko_fonts/extended/buddychampionrotal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Inline';
    src: url('../miko_fonts/extended/sf wonder comic inline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Inline';
    src: url('../miko_fonts/extended/sf wonder comic inline italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic';
    src: url('../miko_fonts/extended/sfwondercomic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic';
    src: url('../miko_fonts/extended/sfwondercomic-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic';
    src: url('../miko_fonts/extended/sfwondercomic-bolditalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic';
    src: url('../miko_fonts/extended/sfwondercomic-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Blotch';
    src: url('../miko_fonts/extended/sfwondercomicblotch.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Blotch';
    src: url('../miko_fonts/extended/sfwondercomicblotch-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Inline2';
    src: url('../miko_fonts/extended/sfwondercomicinline.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Wonder Comic Inline2';
    src: url('../miko_fonts/extended/sfwondercomicinline-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Custom Fonts - Chinese */
@font-face {
    font-family: 'Yozai';
    src: url('../miko_fonts/chinesse/Yozai-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yozai';
    src: url('../miko_fonts/chinesse/Yozai-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yozai';
    src: url('../miko_fonts/chinesse/Yozai-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Custom Fonts - Japanese */
@font-face {
    font-family: 'GenEiAntique';
    src: url('../miko_fonts/japanese/GenEiAntiqueNv5-M.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiAntiqueP';
    src: url('../miko_fonts/japanese/GenEiAntiquePv5-M.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiKoburi';
    src: url('../miko_fonts/japanese/GenEiKoburiMin6-R.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiMGothic';
    src: url('../miko_fonts/japanese/GenEiMGothic2-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiMGothic';
    src: url('../miko_fonts/japanese/GenEiMGothic2-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiMGothic';
    src: url('../miko_fonts/japanese/GenEiMGothic2-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiMGothic';
    src: url('../miko_fonts/japanese/GenEiMGothic2-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

@font-face {
    font-family: 'GenEiMGothic';
    src: url('../miko_fonts/japanese/GenEiMGothic2-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF;
}

/* Custom Fonts - Korean */
@font-face {
    font-family: 'KakaoBigSans';
    src: url('../miko_fonts/korean/KakaoBigSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'KakaoBigSans';
    src: url('../miko_fonts/korean/KakaoBigSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'KakaoBigSans';
    src: url('../miko_fonts/korean/KakaoBigSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'KakaoSmallSans';
    src: url('../miko_fonts/korean/KakaoSmallSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'KakaoSmallSans';
    src: url('../miko_fonts/korean/KakaoSmallSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'KakaoSmallSans';
    src: url('../miko_fonts/korean/KakaoSmallSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'SinchonRhapsody';
    src: url('../miko_fonts/korean/SinchonRhapsodyTTF-Extra.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

@font-face {
    font-family: 'EunglwolYakdahyun';
    src: url('../miko_fonts/korean/온글잎 박다현체.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+AC00-D7AF, U+1100-11FF, U+3130-318F, U+A960-A97F, U+D7B0-D7FF;
}

/* Custom Fonts - Other */
@font-face {
    font-family: 'Kalam';
    src: url('../miko_fonts/other/Kalam-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalam';
    src: url('../miko_fonts/other/Kalam-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kalam';
    src: url('../miko_fonts/other/Kalam-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Font select styling */
.font_select {
    font-size: 14px;
}

.font_select option {
    padding: 8px 6px;
    line-height: 1.5;
    min-height: 30px;
}

.font_select optgroup {
    font-size: 12px;
    color: #9ca3af;
    background-color: #1f2937;
    border-bottom: 1px solid #4b5563;
    padding-top: 4px;
    padding-bottom: 4px;
}

.font_option_preview {
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
}

.section_title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--base_title_color);
}

.base_title_color {
    color: var(--base_title_color);
}

/* Gallery drag & drop styles */
.gallery-dragging {
    user-select: none;
}

.gallery-item-ghost {
    opacity: 0.4;
    transform: scale(0.95);
    border: 2px dashed #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.gallery-item-chosen {
    transform: scale(1.05);
    border-color: #ef4444;
    box-shadow: 0 8px 25px -5px rgba(239, 68, 68, 0.3);
    z-index: 1000;
}

.gallery-item-drag {
    transform: rotate(5deg);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.sortable-gallery .gallery-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sortable-gallery .gallery-item:hover {
    border-color: #f59e0b;
}

/* Responsive design ALWAYS AT THE END OF THE FILE */
@media (max-width: 1020px) {
    #editor_not_compatible {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-color);
        color: var(--text-color);
        z-index: 9999;
    }
    
}

@media (min-width: 1020px) {
    #editor_not_compatible {
        display: none;
    }
}

/* Pages navigation scrollbar hidden */
.scrollbar-hidden {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hidden::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

/* Navigation bar scrollbar styling */
.navigation-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #6b7280 #374151;
}

.navigation-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.navigation-scrollbar::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.navigation-scrollbar::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.navigation-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* DON'T PUT CSS UNRELATED TO MEDIA QUERIES HERE*/

