/* Tab styles (Create only)*/
.tab-container {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}
.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab.active {
    border-bottom-color: #4F46E5;
    color: #4F46E5;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Series form styles (Create only) */
.series-fields {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Tag suggestions */
.tag-suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #d1d5db;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    width: calc(100% - 2px);
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.tag-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tag-suggestion-item:hover { background-color: #f3f4f6; }
.tag-suggestion-count { font-size: 0.75rem; color: #6b7280; }
.tag-suggestion-highlight {
    font-weight: bold;
}

/* Tag badges */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #4F46E5;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}
.tag-badge-remove {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}
.tag-badge-remove:hover { opacity: 0.8; }
.tags-input-container { position: relative; }

/* Visualization form styles */
.visualization-form {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.visualization-form:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.remove-visualization {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.remove-preview-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
    padding: 0;
}
.remove-preview-btn:hover { background-color: #FEE2E2; }
.remove-preview-btn svg { width: 1.25rem; height: 1.25rem; }

/* Code preview */
.code-preview {
    position: relative;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}
.code-preview p { margin: 0; padding-right: 2rem; }
.code-preview .remove-preview-btn {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}

/* Ensure code preview is visible in Single form */
#code-preview {
    position: relative;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}
#code-preview p {
    margin: 0;
    padding-right: 2rem;
}
#code-preview .remove-preview-btn {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}

/* Add visualization button */
.add-visualization {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 0.5rem;
    border: 2px dashed #D1D5DB;
    border-radius: 0.375rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}
.add-visualization:hover {
    opacity: 1;
    border-color: #4F46E5;
}
.add-visualization svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Hidden class definition */
.hidden {
    display: none !important;
}