/* Styles for field containers (e.g., a single slide or hotspot entry in the form) */
.hotspot-fields, /* Used in create_hotspot.html */
.slide-fields {   /* Used in create_instructionalSlide.html and create_slide.html */
    position: relative;
}

/* Styles for remove buttons within those field containers */
.remove-hotspot, /* Used in create_hotspot.html */
.remove-slide {   /* Used in create_instructionalSlide.html and create_slide.html */
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Specific to hotspot creation form (create_hotspot.html) */
.hotspot-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.7); /* Default red semi-transparent circle */
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Center the marker on the coordinates */
    cursor: grab;
    z-index: 10; /* Ensure markers are above the image on the preview */
}
.hotspot-marker:active {
    cursor: grabbing;
}

img.object-contain {
object-fit: cover;
}

/* Styles for image preview widgets used in create forms */
.image-preview-wrapper {
    width: 100%;
    max-width: 480px; /* Default max-width, can be overridden */
    aspect-ratio: 3 / 2; /* Default aspect ratio */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 0.75rem; /* 12px */
    background-color: #f0f0f0; /* Light grey placeholder background */
    position: relative; /* For potential absolute positioning of children if needed */
    margin-bottom: 1rem; /* Consistent spacing */
}

.image-preview-img {
    display: none; /* Initially hidden, shown by JS when an image is loaded/selected */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image is filling the preview area */
}

/* Styles for ToastUI WYSIWYG Editor integration */
.original-markdown-input { 
    display: none !important; /* Ensure it's hidden, used by wysiwyg_editor_widget.html */
}
.toastui-editor-toolbar-icons { 
    background-color: white !important; /* Override for toolbar icon background */
}
/* Ensure editor content area is visible and has a minimum height */
.toastui-editor-md-container, .toastui-editor-ww-container {
    min-height: 150px; /* Or any other suitable height */
}
.toastui-editor-contents {
    min-height: 100px; /* Or any other suitable height for the actual text area */
    font-size: 1rem; /* Ensure text is readable */
    color: #333; /* Standard text color */
}

/* Styles for tabbed input groups (create_tabbed.html) */
.tab-input-group { 
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    padding: 1rem; 
    margin-bottom: 1rem; 
    border-radius: 0.375rem; /* Tailwind rounded-md */
    background-color: #f9fafb; /* Tailwind gray-50 */
    position: relative; /* For absolute positioning of remove button */
}

.remove-tab-btn { 
    background-color: #ef4444; /* Tailwind red-500 */
    color: white; 
    border: none; 
    padding: 0.25rem 0.5rem; 
    border-radius: 0.25rem; /* Tailwind rounded-sm */
    cursor: pointer; 
    /* float: right; Replaced by absolute positioning for better control */
    position: absolute;
    top: 1rem; /* Adjust as needed */
    right: 1rem; /* Adjust as needed */
    font-size: 0.875rem; 
    font-weight: bold; 
}

.remove-tab-btn:hover { 
    background-color: #dc2626; /* Tailwind red-600 */
}
