/* Dropdown Button */
/* The container <div> - needed to position the dropdown content */
.tour-guide-dropdown {
	position: relative;
	display: inline-block;
}

/* Dropdown Content (hidden by default) */
.tour-guide-dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 999;
}

/* Links inside the dropdown */
.tour-guide-dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

/* Change color of dropdown links on hover */
.tour-guide-dropdown-content a:hover {
	background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.tour-guide-dropdown:hover .tour-guide-dropdown-content {
	display: block;
}

/* Widget Management Styles */
.tour-guide-widgets-list .tour-guide-list-header {
    margin-bottom: 20px;
}

.tour-guide-widget-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

.tour-guide-empty-state {
    padding: 40px 20px;
}

/* Widget Actions Styling */
.tour-guide-widgets-list .btn-icon {
    border: none;
    background: transparent;
    padding: 0.375rem;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tour-guide-widgets-list .btn-icon:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.tour-guide-widgets-list .btn-icon .tour-guide-icon {
    transition: color 0.2s ease;
    font-size: 14px;
}

.tour-guide-widgets-list .btn-icon:hover .tour-guide-icon {
    opacity: 0.8;
}

/* Widget Form Styles */
#widget_selected_tours {
    min-height: 150px;
}

.tour-guide-no-tours {
    text-align: center;
    color: #777;
    font-style: italic;
    margin: 0;
    padding: 20px;
}

.tour-guide-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f4f4f4;
}

.tour-guide-form-actions .btn {
    margin-right: 10px;
}

/* Widget Section Styles */
.tour-guide-section-divider {
    margin: 25px 0 20px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
    opacity: 0.6;
}

.tour-guide-widget-section {
    margin-bottom: 20px;
}

.tour-guide-widget-section:first-child {
    margin-top: 0;
}

/* Dynamic tour selection visibility */
.tour-selection-section {
    display: block;
}

/* Hide tour selection for setup widgets */
input[name="tour_guide_widget[type]"][value="setup"]:checked~.tour-selection-section,
select[name="tour_guide_widget[type]"] option[value="setup"]:checked~.tour-selection-section {
    display: none;
}

/* Embed Code Modal Styles */
.tour-guide-embed-options {
    max-height: 600px;
    overflow-y: auto;
}

.tour-guide-embed-option {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-bottom: 1.25rem;
}

.tour-guide-embed-option:last-child {
    margin-bottom: 0;
}

.tour-guide-embed-option h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tour-guide-embed-option .text-muted {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.tour-guide-embed-option textarea,
.tour-guide-embed-option input {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background-color: #ffffff;
    border: 1px solid #ced4da;
}

.tour-guide-embed-option .input-group-append .btn {
    padding: 0.375rem 0.75rem;
}

#embedCodeModal .modal-dialog {
    max-width: 800px;
}

#embedCodeModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

#embedCodeModal .modal-title {
    margin: 0;
    flex: 1;
}

#embedCodeModal .close {
    padding: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

#embedCodeModal .close:hover {
    opacity: 0.75;
}
