.multiple-timelines-interface {
    padding: 0;
    margin: 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-bottom: 0;
}

.item-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin: 0;
    width: 50%;
    height: 22px;
    transition: opacity 0.2s;
}

.item-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.item-input:focus {
    outline: none;
    border-color: #007bff;
}

.submit-button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    min-width: 100px; /* Fixed minimum width to prevent size change */
    width: 25%;
    height: 40px; /* Fixed height to prevent vertical size change */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease; /* Only transition background, not size */
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.submit-button:hover:not(:disabled) {
    background: #0056b3;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.submit-button.loading {
    background: #ffc107;
    cursor: not-allowed;
}

.submit-button.loading:hover {
    background: #ffc107;
}

.spinner {
    width: 14px; /* Fixed width */
    height: 14px; /* Fixed height - same as width for perfect circle */
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    flex-shrink: 0; /* Prevent the spinner from shrinking */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timelines-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.timeline-item {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}